M19 Spindle orientation
Fanuc M-code · Mill and lathe
Stops the spindle at a fixed angle. Used for tool changes on mills, boring bar shifts and some part loading.
Format
M19
How it works
Stays until a spindle command.
Example program
G00 X3. Z1. M09 (CLEAR PART)
M05 (SPINDLE STOP)
M19 (ORIENT SPINDLE)
M05 (SPINDLE STOP)
M19 (ORIENT SPINDLE)
Example is in inch. Check offsets and clearances first.
Watch out for
- Some machines accept an angle with M19, many do not. Check the builder manual.
- On lathes with a C axis, use the C axis instead for indexing holes.
Related codes
M19 on other controls
The same number can mean something different on another control.
| Control | Meaning |
|---|---|
| Haas NGC | Orient 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 OSP | Spindle orientation (Lathes & Mills) |
| Mitsubishi M70 M80 | Spindle orientation |
| Brother Speedio | Spindle orientation |
| Siemens 840D 828D | Spindle positioning |
| Fagor 8055 8065 | Spindle orientation |
| LinuxCNC Tormach | Spindle orient |
| Mach3 Mach4 | Spindle orient |
| Centroid CNC12 Acorn | Spindle orient, macro |
| Hurco WinMax (NC) | Spindle orient |
| Fadal | Spindle stop and orient |
Every M-code for Fanuc 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 Fanuc M-codes