CNC Machinist Calculator Ultra

Home › M-codes › LinuxCNC Tormach › M4

M4 Spindle counterclockwise

LinuxCNC Tormach M-code · Mill and lathe

Starts the spindle counterclockwise at the active S speed.

Format

M4 [S] [$]

Addresses

AddressWhat it does
SSpindle speed
$Spindle number, default 0, -1 for all

How it works

Modal, spindle group. Stays on until M3 or M5.

Example program

G20 G17 G40 G49 G54 G80 G90 G94 (INCH, SAFE START)
T6 M6 G43 (LEFT HAND TAP)
S400 M4 (SPINDLE CCW)
G0 X1 Y1 Z0.5

Example is in inch. Check offsets and clearances first.

Watch out for

Related codes

M3 · M5 · G74

M4 on other controls

The same number can mean something different on another control.

ControlMeaning
FanucSpindle on, reverse
Haas NGCSpindle on counterclockwise
Doosan (Fanuc)Left spindle reverse rotation
DMG Mori MAPPS (Fanuc)Spindle start(reverse)
Mazak (EIA)Spindle reverse rotation
Okuma OSPSpindle counter clockwise (Lathes & Mills)
Mitsubishi M70 M80Spindle on counterclockwise
Brother SpeedioSpindle on counterclockwise
Siemens 840D 828DSpindle on counterclockwise
Heidenhain TNC (ISO)Spindle on counterclockwise
Fagor 8055 8065Spindle counterclockwise
Mach3 Mach4Spindle on counterclockwise
Centroid CNC12 AcornSpindle on counterclockwise
Hurco WinMax (NC)Spindle on counterclockwise
FadalSpindle on counterclockwise
Swiss (Citizen Star)Main spindle reverse

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 M4 in the app All LinuxCNC Tormach M-codes

App Store Google Play