M30: Program end
Ends the program.
Code
M30
Processing details
When the M30 command is executed, the program execution ends.
An M30 command (or M02 command) is required in the last block of a program.
Program example
■Ending the program after positioning completion
Program
G90
G01 X100. Y200. F100.
X200. Y300.
G00 X0. Y0.
M30
%
M30 and M02 have the same function.
5 G-CODE CONTROL PROGRAMS
166
5.7 M-Code
Format
M30
Remarks
Absolute position command
Positioning
Positioning
Positioning
Program end