M19 & M119 Spindle Orientation: Precise Angle Control for CNC Milling
M19 Spindle Orientation
M19 Spindle orientation. M19 M-code stops the spindle in a defined angle position.
Usage of Spindle Orientation
The spindle orientation is normally used for milling operation (Live tooling) on a cnc lathe machine.
Main spindle and sub spindle can be oriented to transfer irregular workpieces.

M19 Spindle Orientation
M19 Spindle Orientation on Fanuc
The stopping angle is programmed through the optional address S (Fanuc).
Example:
N22 …… N23 M19 S45 N24 ……
M19 Spindle Orientation on Haas CNC
M19 adjusts the spindle to a fixed position. The spindle will only orient to the zero position without the optional M19 spindle orient feature.
The optional Orient Spindle function allows P and R address codes. For example,
M19 P270
will orient the spindle to 270 degrees.
The R-value allows the programmer to specify up to four decimal places; for example,
M19 R123.4567
Related: For a cnc program example read Live Tooling Lathe Programming Code – Spindle Orientation Haas CNC
M119 Sub Spindle Orientation
The sub-spindle can be oriented to fixed position with an M119. A “P” or “R” value can be added that will cause it to orient to a particular angle (in degrees). A combination of M19 Pxx or M119 Pxx can be used to transfer irregular workpieces.
CNC Machine
- Choosing the Right Spindle: A Comprehensive Guide for CNC Machinists
- 4 Guidelines for Selecting a CNC Spindle
- Choosing Between CNC Spindle Repair and Replacement: The DATRON Spindle Exchange Program
- Live Tooling Lathe Programming on Haas CNC: Spindle Orientation & M‑Codes
- Mastering Fanuc Sub-Programming: Efficient Use of M98 for Threading Cycles
- Comprehensive Guide to Hurco Lathe M Codes
- Comprehensive Guide to Fanuc Spindle Alarm Codes & Faults
- Spindle Warm-Up Procedure for Optimal Performance
- Comprehensive Fanuc M-Code Reference for CNC Lathe and Mill
- Complete List of Osai 10 Series CNC M Codes for Programmers