M01 Optional stop
Fanuc M-code · Mill and lathe
Stops the program like M00, but only when the optional stop switch on the panel is on.
Format
M01
How it works
Non-modal.
Example program
G28 U0 W0 (HOME)
M01 (OPTIONAL STOP)
T0202 (NEXT TOOL)
M01 (OPTIONAL STOP)
T0202 (NEXT TOOL)
Example is in inch. Check offsets and clearances first.
Watch out for
- Put M01 at the end of each tool so a new setup can be checked tool by tool.
- If the switch is off, M01 does nothing.
Related codes
M01 on other controls
The same number can mean something different on another control.
| Control | Meaning |
|---|---|
| Haas NGC | Optional stop |
| Doosan (Fanuc) | Optional program stop |
| DMG Mori MAPPS (Fanuc) | Optional stop |
| Mazak (EIA) | Optional stop |
| Okuma OSP | Optional Stop (Lathes & Mills) |
| Mitsubishi M70 M80 | Optional stop |
| Brother Speedio | Optional stop |
| Siemens 840D 828D | Optional stop |
| Heidenhain TNC (ISO) | Optional program stop |
| Fagor 8055 8065 | Optional stop |
| LinuxCNC Tormach | Optional pause |
| Mach3 Mach4 | Optional stop |
| Centroid CNC12 Acorn | Optional stop |
| Hurco WinMax (NC) | Optional stop |
| Fadal | Optional stop |
| Swiss (Citizen Star) | Optional stop |
Every M-code for Fanuc in your pocket. The app has the full example programs, search by number or shop word, a line decoder and calculators for tapping, threading and drilling.
Open M01 in the app All Fanuc M-codes