Home › M-codes › Mach3 Mach4 › M5
M5 Spindle stop
Mach3 Mach4 M-code · Mill
Stops the spindle.
Format
M5
Addresses
| Address | What it does |
|---|---|
M5 | No address words |
How it works
Modal, spindle group.
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 STOP)
…
T1 M6 (TOOL CHANGE)
G43 H1 Z1.0 (LENGTH OFFSET)
M5 (SPINDLE STOP)
…
The full 6-line example is in the app. Example is in inch. Check offsets and clearances first.
Watch out for
- A big router spindle coasts for seconds. Wait before reaching in or starting a tool change.
Related codes
M5 on other controls
The same number can mean something different on another control.
| Control | Meaning |
|---|---|
| Fanuc | Spindle stop |
| Haas NGC | Spindle stop |
| Doosan (Fanuc) | Left spindle stop & selection |
| DMG Mori MAPPS (Fanuc) | Spindle stop |
| Mazak (EIA) | Spindle stop |
| Okuma OSP | Spindle stop (Lathes & Mills) |
| Mitsubishi M70 M80 | Spindle stop |
| Brother Speedio | Spindle stop |
| Siemens 840D 828D | Spindle stop |
| Heidenhain TNC (ISO) | Spindle stop |
| Fagor 8055 8065 | Spindle stop |
| LinuxCNC Tormach | Spindle stop |
| Centroid CNC12 Acorn | Spindle stop |
| Hurco WinMax (NC) | Spindle stop |
| Fadal | Spindle off |
| Swiss (Citizen Star) | Main spindle 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 M5 in the app All Mach3 Mach4 M-codes