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
| Address | What it does |
|---|---|
P | Orient angle in whole degrees |
R | Orient 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)
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
- The spindle orient angle option may be needed to use P or R.
- Plain M19 goes to the factory orient position.
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
| Address | What it does |
|---|---|
P | Angle in whole degrees, 0 to 360 |
R | Angle 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)
M19 P90 (ORIENT SPINDLE TO 90 DEGREES)
M14 (BRAKE ON)
Example is in inch. Check offsets and clearances first.
Watch out for
- A negative value is ignored and the spindle goes to 0 degrees.
- Heavy or long parts may not orient well. Call Haas applications for odd setups.
- Under G14, M19 orients the secondary spindle.
Related codes
M19 on other controls
The same number can mean something different on another control.
| Control | Meaning |
|---|---|
| Fanuc | Spindle 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 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 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