CNC Machinist Calculator Ultra

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

AddressWhat it does
P0 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)

Example is in inch. Check offsets and clearances first.

Watch out for

Related codes

M48 · M50

M51 on other controls

The same number can mean something different on another control.

ControlMeaning
Haas NGCBuilt 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 AcornC 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

App Store Google Play