M19: Spindle orientation
What M19 does
M19 turns the spindle to a fixed orientation and holds it, for tool changes, fine boring shifts and probe alignment.
| Type | M-code |
|---|---|
| Machine | Mill and lathe |
| Group | Spindle |
| Modal | No: acts only on its own line |
M19 example
M19 Orient the spindle.
| Word | What it means here |
|---|---|
M19 | Spindle orientation |
Codes people confuse with M19
| Code | What it does instead |
|---|---|
M05 | Spindle stop. Stops the spindle. |
Other codes in the spindle group
These also act only on their own line.
Meanings follow the common Fanuc-style standard that Haas, Okuma (EIA mode), Mitsubishi, LinuxCNC and most other controls share for this code. Options and parameters change details from machine to machine, so check the manual for your control.
Quick check: M19
-
What does
M19do? (Mill and lathe) -
Which code: Stops the spindle at a fixed angle.(Mill and lathe)
-
What does
M05do? (Mill and lathe)
Show the answers
- Stops the spindle at a fixed angle.
- M19
- Stops the spindle.
Frequently asked questions
- What does M19 mean in CNC programming?
- Spindle orientation. Stops the spindle at a fixed angle.
- Is M19 modal?
- No. M19 acts only on the line where it is written; the next line goes back to whatever modal codes were already active.
- What is the difference between M19 and M05?
- M19 (spindle orientation): stops the spindle at a fixed angle. M05 (spindle stop): stops the spindle.
G-Code Sprint is an educational practice tool only. It is not a CNC simulator, machine controller, safety manual, or replacement for instruction. Always follow your instructor, employer, machine manual, and shop procedures.