M-code reference

M19 M-Code: Spindle Orientation

Spindle Orientation — Stops the spindle at a fixed angular position. It is used before tool changes, back boring and for setting boring bars, and on lathes for indexing live-tool…

By cnccode · Updated
PropertyValue
CodeM19
FunctionSpindle Orientation
Used onMills and lathes

What does M19 do?

Stops the spindle at a fixed angular position. It is used before tool changes, back boring and for setting boring bars, and on lathes for indexing live-tool work.

M19 example

Example
M19 (orient spindle)
M19 P90. (Haas: orient to 90°)

Tips

  • Used automatically inside G76/G87 boring cycles.

M-codes vary between machine builders. Codes from M00 to M09, M30 and M98/M99 are nearly universal; most others are defined by the machine builder. Always check the M-code list in your machine manual.

Most-used M-codes

CodeFunction
M00Program Stop
M01Optional Stop
M03Spindle On Clockwise
M04Spindle On Counter-Clockwise
M05Spindle Stop
M06Tool Change
M08Flood Coolant On
M09Coolant Off
M30Program End and Rewind
M98Subprogram Call
M99Subprogram Return / Loop

Frequently asked questions

What does M19 mean on a CNC machine?
M19 is Spindle Orientation. Stops the spindle at a fixed angular position. It is used before tool changes, back boring and for setting boring bars, and on lathes for indexing live-tool work.