M01 – Optional Program Stop
This command stops the program if Optional Stop is turned ON.
Pressing Cycle Start will resume the program.
You can press CTRL + O on the F2 – Program & MDI screen to toggle Optional Stop ON or OFF.
The Optional Stop status is displayed at the top of the screen and can also be toggled by clicking it with the mouse or using the touch screen. 
Syntax & Parameters
M01M1– Same asM01
Example Program
N10 G00 X0 Y0 N20 G00 X10 N30 M01 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: Stops the program and waits for Cycle Start if Optional Stop is ON, otherwise the program continues
Line 4: Moves the Y axis to position 10
Spanish
French
German
Simplified Chinese