Home › M-codes › LinuxCNC Tormach › M0
M0 Program pause
LinuxCNC Tormach M-code · Mill and lathe
Pauses the program. Cycle start resumes at the next line. Spindle and coolant states depend on the machine setup.
Format
M0
Addresses
| Address | What it does |
|---|---|
none | No words |
How it works
Non modal.
Example program
G0 Z1 (RETRACT)
M5 M9 (SPINDLE AND COOLANT OFF)
M0 (PAUSE, FLIP PART)
M3 S3000 (RESTART SPINDLE)
M5 M9 (SPINDLE AND COOLANT OFF)
M0 (PAUSE, FLIP PART)
M3 S3000 (RESTART SPINDLE)
Example is in inch. Check offsets and clearances first.
Watch out for
- Stop the spindle with M5 before M0 if someone will reach into the machine.
- Add a comment saying why the program stopped.
Related codes
M0 on other controls
The same number can mean something different on another control.
| Control | Meaning |
|---|---|
| Fanuc | Program stop |
| Haas NGC | Program stop |
| Doosan (Fanuc) | Program stop |
| DMG Mori MAPPS (Fanuc) | Program stop |
| Mazak (EIA) | Program stop |
| Okuma OSP | Program Stop (Lathes & Mills) |
| Mitsubishi M70 M80 | Program stop |
| Brother Speedio | Program stop |
| Siemens 840D 828D | Program stop |
| Heidenhain TNC (ISO) | Program stop |
| Fagor 8055 8065 | Program stop |
| Mach3 Mach4 | Program stop |
| Centroid CNC12 Acorn | Program stop |
| Hurco WinMax (NC) | Program stop |
| Fadal | Program stop |
| Swiss (Citizen Star) | Program stop |
Every M-code for LinuxCNC Tormach 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 M0 in the app All LinuxCNC Tormach M-codes