M01: Optional stop
What M01 does
M01 behaves like M00, but only if the operator has switched Optional Stop on. Programmers put M01 after each tool so a first part can be checked tool by tool, then the switch is turned off for production.
| Type | M-code |
|---|---|
| Machine | Mill and lathe |
| Group | Program control |
| Modal | No: acts only on its own line |
M01 example
M01 Stop here if Optional Stop is on.
| Word | What it means here |
|---|---|
M01 | Optional stop |
Codes people confuse with M01
| Code | What it does instead |
|---|---|
M00 | Program stop. Stops the program until the operator presses cycle start. |
Other codes in the program control group
These also act only on their own line.
Meanings follow the common Fanuc-style standard that Haas, Okuma (EIA mode), Mitsubishi, LinuxCNC and most other controls share for this code. Options and parameters change details from machine to machine, so check the manual for your control.
Quick check: M01
-
What does
M01do? (Mill and lathe) -
Which code: Stops only when the Optional Stop switch is on.(Mill and lathe)
-
What does
M00do? (Mill and lathe)
Show the answers
- Stops only when the Optional Stop switch is on.
- M01
- Stops the program until the operator presses cycle start.
Frequently asked questions
- What does M01 mean in CNC programming?
- Optional stop. Stops only when the Optional Stop switch is on.
- Is M01 modal?
- No. M01 acts only on the line where it is written; the next line goes back to whatever modal codes were already active.
- What is the difference between M01 and M00?
- M01 (optional stop): stops only when the Optional Stop switch is on. M00 (program stop): stops the program until the operator presses cycle start.
G-Code Sprint is an educational practice tool only. It is not a CNC simulator, machine controller, safety manual, or replacement for instruction. Always follow your instructor, employer, machine manual, and shop procedures.