CNC Machinist Calculator Ultra

Home › M-codes › Haas NGC › M19

M19 Orient spindle

Haas NGC M-code · Mill, Lathe

On mills: Orient spindle

Stops the spindle at a fixed angle. P or R can set the angle. Used for boring bar shift, probes and setup.

Format

M19 [P] [R]

Addresses

AddressWhat it does
POrient angle in whole degrees
ROrient angle in degrees with decimals

How it works

Not modal. Acts once on the line where it is commanded.

Example program

M05 (SPINDLE STOP)
M19 R90. (ORIENT THE SPINDLE TO 90 DEG)
M00 (CHECK BORING BAR TIP DIRECTION)

Example is in inch. Check offsets and clearances first.

Watch out for

On lathes: Orient spindle

Orients the main spindle to a fixed angle. P gives whole degrees and R gives up to two decimal places. Without the option it orients to zero only.

Format

M19 [P] [R]

Addresses

AddressWhat it does
PAngle in whole degrees, 0 to 360
RAngle with two decimals, 0 to 360

How it works

Non-modal.

Example program

M05 (SPINDLE STOP)
M19 P90 (ORIENT SPINDLE TO 90 DEGREES)
M14 (BRAKE ON)

Example is in inch. Check offsets and clearances first.

Watch out for

Related codes

M119 · M219

M19 on other controls

The same number can mean something different on another control.

ControlMeaning
FanucSpindle orientation
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
LinuxCNC TormachSpindle orient
Mach3 Mach4Spindle orient
Centroid CNC12 AcornSpindle orient, macro
Hurco WinMax (NC)Spindle orient
FadalSpindle stop and orient

Every M-code for Haas NGC 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 Haas NGC M-codes

App Store Google Play