M02 – Program End

This command ends the program.

Syntax & Parameters

  • M02
  • M2 - The same as M02

Example program

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

  • The first line will move both X and Y axis to 0.00 position.
  • In line two the X axis will move to X 10 position.
  • In line three the program will stop and will not run line four.