CNC Machinist Calculator Ultra

Home › M-codes › LinuxCNC Tormach › M19

M19 Spindle orient

LinuxCNC Tormach M-code · Mill and lathe

Turns the spindle to angle R and holds it. Used for boring bar shifts and tool changers.

Format

M19 R Q [P] [$]

Addresses

AddressWhat it does
RAngle 0 to 360 degrees
QTimeout in seconds
PDirection, 0 shortest, 1 clockwise, 2 counterclockwise
$Spindle number

How it works

Modal until M3, M4 or M5.

Example program

M5 (SPINDLE STOP)
M19 R90 Q5 P0 (ORIENT TO 90 DEG, 5 SEC TIMEOUT)
G0 X0.02 (SHIFT BORING BAR OFF THE WALL)
G0 Z1 (RETRACT)

Example is in inch. Check offsets and clearances first.

Watch out for

Related codes

M5 · M3

M19 on other controls

The same number can mean something different on another control.

ControlMeaning
FanucSpindle orientation
Haas NGCOrient spindle
Doosan (Fanuc)Left spindle orientation
DMG Mori MAPPS (Fanuc)Spindle orientation
Mazak (EIA)Spindle orientation position (for the robot to insert a workpiece)
Okuma OSPSpindle orientation (Lathes & Mills)
Mitsubishi M70 M80Spindle orientation
Brother SpeedioSpindle orientation
Siemens 840D 828DSpindle positioning
Fagor 8055 8065Spindle orientation
Mach3 Mach4Spindle orient
Centroid CNC12 AcornSpindle orient, macro
Hurco WinMax (NC)Spindle orient
FadalSpindle stop and orient

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

App Store Google Play