Home › M-codes › Siemens 808D › M4
M4 Spindle on counterclockwise
Siemens 808D M-code · Mill and lathe
Starts the spindle counterclockwise at the speed S. Like M3, it acts before the axis moves in the same block.
Format
S M4
Addresses
| Address | What it does |
|---|---|
S | Spindle speed in rpm, or cutting speed in m per min with G96 |
How it works
Modal until M3 or M5.
Example program
T1 D1 ; TURNING TOOL
G96 S200 LIMS=2500 M4 ; SPINDLE CCW, 200 M PER MIN
G0 X52 Z2 ; APPROACH
G1 Z-30 F0.2 ; TURN
G96 S200 LIMS=2500 M4 ; SPINDLE CCW, 200 M PER MIN
G0 X52 Z2 ; APPROACH
G1 Z-30 F0.2 ; TURN
Example is in inch. Check offsets and clearances first.
Watch out for
- Check the tool hand first. A right hand tool run in M4 rubs and breaks.
- At program start the speed is S0. Write S in the same block or before it.
Machine builders set many M codes, and they change by model and options. Check the M code list for your machine.
Related codes
M4 on other controls
The same number can mean something different on another control.
| Control | Meaning |
|---|---|
| Fanuc | Spindle on, reverse |
| Haas NGC | Spindle on counterclockwise |
| Doosan (Fanuc) | Left spindle reverse rotation |
| DMG Mori MAPPS (Fanuc) | Spindle start(reverse) |
| Mazak (EIA) | Spindle reverse rotation |
| Okuma OSP | Spindle counter clockwise (Lathes & Mills) |
| Mitsubishi M70 M80 | Spindle on counterclockwise |
| Brother Speedio | Spindle on counterclockwise |
| Siemens 840D 828D | Spindle on counterclockwise |
| Siemens 808D ISO | Spindle on counterclockwise |
| Heidenhain TNC (ISO) | Spindle on counterclockwise |
| Fagor 8055 8065 | Spindle counterclockwise |
| LinuxCNC Tormach | Spindle counterclockwise |
| Mach3 Mach4 | Spindle on counterclockwise |
| Centroid CNC12 Acorn | Spindle on counterclockwise |
| Hurco WinMax (NC) | Spindle on counterclockwise |
| Fadal | Spindle on counterclockwise |
| Swiss (Citizen Star) | Main spindle reverse |
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 M4 in the app All Siemens 808D M-codes