CNC mill · M-code
M00 / M01: program stop and optional stop
M00 stops the program until Cycle Start; M01 stops only when Optional Stop is switched on. Formats below from Haas and LinuxCNC, each from its maker.
Worked example
Stop to check the first part, and optionally after each tool. Written for this page in the Haas format.
M00 (check the first bore before finishing)T2 M06M01 (optional stop: on for the first run only)How each control writes it
Haas M00 / M01
One source: Haas Automation, the control's maker
- M00 stops the axes and spindle and turns off coolant; [CYCLE START] carries on from the next block.
- M01 works the same, but only when [OPTION STOP] is on.
Source: Haas Automation, mill M00, Haas Automation, mill M01
LinuxCNC M0 / M1
One source: the LinuxCNC project, the control's maker
- M0 pauses the program; resume starts at the next line.
- M1 pauses only when the optional stop switch is on.
Source: LinuxCNC documentation, "M0, M1 Program Pause" (archived Oct 24, 2026)
No Fanuc row yet: that chapter of the 0i manual has not been read.
Haas follows Fanuc's numbering, but options and parameters differ between controls: check your control's manual.