M02 – Program End

M02 ends the program. Any lines after it are not run.

Syntax
M02
Also written
M2

Example

N10 G00 X0 Y0
N20 G00 X10
N30 M02
N40 G00 Y10
CodeResult
G00 X0 Y0Moves X and Y to 0.
G00 X10Moves X to 10.
M02Ends the program.
G00 Y10Not run.

CONTENTS