Home › M-codes › Mach3 Mach4 › M0
M0 Program stop
Mach3 Mach4 M-code · Mill
Stops the program and the spindle. Press Cycle Start to go on at the next line.
Format
M0
Addresses
| Address | What it does |
|---|---|
M0 | No address words |
How it works
Non modal.
Example program
G0 G20 G90 G54 G17 G40 G49 G80 (SAFE START, INCH)
T1 M6 (TOOL CHANGE)
G43 H1 Z1.0 (LENGTH OFFSET)
M5 (SPINDLE OFF)
…
T1 M6 (TOOL CHANGE)
G43 H1 Z1.0 (LENGTH OFFSET)
M5 (SPINDLE OFF)
…
The full 7-line example is in the app. Example is in inch. Check offsets and clearances first.
Watch out for
- Mach4 stops the spindle at M0. Restart it after the stop if your setup does not.
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 |
| LinuxCNC Tormach | Program pause |
| Centroid CNC12 Acorn | Program stop |
| Hurco WinMax (NC) | Program stop |
| Fadal | Program stop |
| Swiss (Citizen Star) | Program stop |
Every M-code for Mach3 Mach4 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 Mach3 Mach4 M-codes