Home › M-codes › Heidenhain TNC (ISO) › M5
M5 Spindle stop
Heidenhain TNC (ISO) M-code · Mill
Stops the spindle.
Format
M5
Addresses
| Address | What it does |
|---|---|
M5 | No addresses |
How it works
Modal. Acts at end of block.
Example program
N150 G00 Z+250 M5 *
N160 M9 *
N170 M30 *
N160 M9 *
N170 M30 *
Example is in inch. Check offsets and clearances first.
Watch out for
- Stop the spindle only after the tool is clear of the part.
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 |
| Fagor 8055 8065 | Spindle stop |
| LinuxCNC Tormach | Spindle stop |
| Mach3 Mach4 | 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 Heidenhain TNC (ISO) 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 Heidenhain TNC M-codes