7 - 125 
7  MOTION PROGRAMS FOR POSITIONING CONTROL 
 
7.15.4 M30  Program end 
Code M30 
Function Program end 
Program is ended. 
 
Format 
0;M3
 
 
[Explanation] 
Executing this command ends an execution of program. 
This command is required at the end of a program. 
 
[Program Example] 
The program which is ends a program after positioning control. 
G90  ;               (Absolute value command) 
G01  X100.  Y200.  F100.  ;        (Positioning) 
X200.  Y300.  ;               (Positioning) 
G00  X0.  Y0.  ;            (Positioning) 
M30  ;               (Program end) ..... Also be enabled by M02. 
% 
REMARK 
M30 and M02 have the same function.