M01 – Optional Program Stop
M01 stops the program only if Optional Stop is turned on. Press Cycle Start to resume. If Optional Stop is off, the program carries on.
Syntax
M01
Also written
M1
Toggle Optional Stop
CTRL + O
1. Turning Optional Stop on or off
On the F2 – Program & MDI screen, press CTRL + O. The Optional Stop status shows at the top of the screen, and you can also tap or click it to toggle it.

2. Example
N10 G00 X0 Y0 N20 G00 X10 N30 M01 N40 G00 Y10