Home › M-codes › LinuxCNC Tormach › M51
M51 Spindle override control
LinuxCNC Tormach M-code · Mill and lathe
P0 disables the spindle speed override knob. P1 or no P enables it.
Format
M51 [P] [$]
Addresses
| Address | What it does |
|---|---|
P | 0 off, 1 on |
$ | Spindle number |
How it works
Modal.
Example program
M51 P0 (SPINDLE OVERRIDE OFF)
G33 Z-0.75 K0.05 (THREAD PASS)
M51 P1 (SPINDLE OVERRIDE ON)
G33 Z-0.75 K0.05 (THREAD PASS)
M51 P1 (SPINDLE OVERRIDE ON)
Example is in inch. Check offsets and clearances first.
Watch out for
- Useful during threading where the RPM must not change.
Related codes
M51 on other controls
The same number can mean something different on another control.
| Control | Meaning |
|---|---|
| Haas NGC | Built in M code relay 1 on |
| Doosan (Fanuc) | Bar-feeder command 2 |
| DMG Mori MAPPS (Fanuc) | Air blow ON |
| Mazak (EIA) | Error detect OFF |
| Centroid CNC12 Acorn | C axis on |
Every M-code for LinuxCNC Tormach 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 M51 in the app All LinuxCNC Tormach M-codes