M02: Program end
Ends the program.
Code
Format
M02
M02
Processing details
When the M02 command is executed, the program execution ends.
An M02 command (or M30 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.
M02
%
M02 and M30 have the same function.
Remarks
Absolute position command
Positioning
Positioning
Positioning
Program end
5 G-CODE CONTROL PROGRAMS
5
165
5.7 M-Code