Home › M-codes › Mach3 Mach4 › M4
M4 Spindle on counterclockwise
Mach3 Mach4 M-code · Mill
Starts the spindle in reverse at the S speed.
Format
M4 [S]
Addresses
| Address | What it does |
|---|---|
S | Spindle speed in RPM |
How it works
Modal, spindle group.
Example program
G0 G20 G90 G54 G17 G40 G49 G80 (SAFE START, INCH)
T7 M6 (LH TAP)
S500 M4 (SPINDLE REVERSE)
G43 H7 Z0.5 (LENGTH OFFSET)
T7 M6 (LH TAP)
S500 M4 (SPINDLE REVERSE)
G43 H7 Z0.5 (LENGTH OFFSET)
Example is in inch. Check offsets and clearances first.
Watch out for
- Needed before G74 left hand tapping.
- Going straight from M3 to M4 is hard on a VFD. Mach3 has spindle safety settings for this.
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 |
| Heidenhain TNC (ISO) | Spindle on counterclockwise |
| Fagor 8055 8065 | Spindle counterclockwise |
| LinuxCNC Tormach | Spindle 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 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 M4 in the app All Mach3 Mach4 M-codes