Home › M-codes › Siemens 808D › M5
M5 Spindle stop
Siemens 808D M-code · Mill and lathe
Stops the spindle. M5 is sent before the axis moves in the same block, but the axes do not wait for the spindle to stop.
Format
M5
How it works
Modal until M3 or M4.
Example program
G0 Z100 M5 ; RETRACT, SPINDLE STOPS
M0 ; CHECK PART
S2000 M3 ; RESTART SPINDLE
M0 ; CHECK PART
S2000 M3 ; RESTART SPINDLE
Example is in inch. Check offsets and clearances first.
Watch out for
- Axes start moving before the spindle has stopped. Put M5 in its own block, or add a stop, if the spindle must be still first.
Machine builders set many M codes, and they change by model and options. Check the M code list for your machine.
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 |
| Siemens 808D ISO | Spindle stop |
| Heidenhain TNC (ISO) | 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 Siemens 808D 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 Siemens 808D M-codes