Home › M-codes › Haas NGC › M01
M01 Optional stop
Haas NGC M-code · Mill, Lathe
On mills: Optional stop
Stops the program only when the Option Stop key is on. Otherwise it is ignored. Use it after each tool to check the work.
Format
M01
How it works
Not modal. Acts once on the line where it is commanded.
Example program
G91 G28 Z0. (Z HOME AFTER THE TOOL)
M01 (OPTIONAL STOP TO CHECK THE PART)
T2 M06 (NEXT TOOL)
M01 (OPTIONAL STOP TO CHECK THE PART)
T2 M06 (NEXT TOOL)
Example is in inch. Check offsets and clearances first.
Watch out for
- Turn Option Stop off for production runs, on for first part prove out.
On lathes: Optional stop
Works like M00 but only stops when OPTION STOP is turned on at the control.
Format
M01
How it works
Non-modal.
Example program
G53 X0 M09 (X HOME, COOLANT OFF)
M01 (OPTIONAL STOP, CHECK PART)
T0202 (NEXT TOOL)
G97 S1000 M03 (RESTART SPINDLE)
M01 (OPTIONAL STOP, CHECK PART)
T0202 (NEXT TOOL)
G97 S1000 M03 (RESTART SPINDLE)
Example is in inch. Check offsets and clearances first.
Watch out for
- Place M01 after each tool so the operator can check the first part.
- Restart the spindle with S and M03 in the next tool block.
Related codes
M01 on other controls
The same number can mean something different on another control.
| Control | Meaning |
|---|---|
| Fanuc | 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 Haas NGC 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 Haas NGC M-codes