Home › M-codes › Mach3 Mach4 › M3
M3 Spindle on clockwise
Mach3 Mach4 M-code · Mill
Starts the spindle forward at the S speed. With no S word the last speed is used.
Format
M3 [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)
T1 M6 (TOOL CHANGE)
S18000 M3 (SPINDLE ON 18000 RPM)
G4 P3.0 (WAIT FOR SPEED)
…
T1 M6 (TOOL CHANGE)
S18000 M3 (SPINDLE ON 18000 RPM)
G4 P3.0 (WAIT FOR SPEED)
…
The full 6-line example is in the app. Example is in inch. Check offsets and clearances first.
Watch out for
- S only sets speed on a PWM, step and direction or VFD spindle. A relay only spindle runs at the pulley speed.
- Set spindle on and off delays in config so the cut does not start before the spindle is up to speed.
- Router spindles often run only one way. Check M4 is not wired to a relay that does nothing.
Related codes
M3 on other controls
The same number can mean something different on another control.
| Control | Meaning |
|---|---|
| Fanuc | Spindle on, forward |
| Haas NGC | Spindle on clockwise |
| Doosan (Fanuc) | Left spindle forward rotation |
| DMG Mori MAPPS (Fanuc) | Spindle start(normal) |
| Mazak (EIA) | Spindle normal rotation |
| Okuma OSP | Spindle clockwise (Lathes & Mills) |
| Mitsubishi M70 M80 | Spindle on clockwise |
| Brother Speedio | Spindle on clockwise |
| Siemens 840D 828D | Spindle on clockwise |
| Heidenhain TNC (ISO) | Spindle on clockwise |
| Fagor 8055 8065 | Spindle clockwise |
| LinuxCNC Tormach | Spindle clockwise |
| Centroid CNC12 Acorn | Spindle on clockwise |
| Hurco WinMax (NC) | Spindle on clockwise |
| Fadal | Spindle on clockwise |
| Swiss (Citizen Star) | Main spindle forward |
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 M3 in the app All Mach3 Mach4 M-codes