M02 – Program End

This command ends the program.

 


Syntax & Parameters

 

  • M02

  • M2 – Same as M02

 


Example Program

 

N10 G00 X0 Y0
N20 G00 X10
N30 M02
N40 G00 Y10

 

  • Line 1: Moves both the X and Y axes to position 0.00

  • Line 2: Moves the X axis to position 10

  • Line 3: Ends the program

  • Line 4: Is not executed