Home › M-codes › Hurco WinMax (NC) › M19
M19 Spindle orient
Hurco WinMax (NC) M-code · Mill
Stops and orients the spindle. S sets an angle from 0 to 359 degrees. Coolant also turns off.
Format
M19 [S] [Q]
Addresses
| Address | What it does |
|---|---|
S | Spindle angle, 0 to 359 degrees |
Q | Q0 from orient position, Q1 from plus X |
How it works
Modal until the spindle restarts.
Example program
T8 M06 (BORING BAR)
M19 S0 Q1 (ORIENT KEY TO PLUS X)
M00 (SET BAR TIP DIRECTION)
M19 S0 Q1 (ORIENT KEY TO PLUS X)
M00 (SET BAR TIP DIRECTION)
Example is in inch. Check offsets and clearances first.
Watch out for
- On machines without orient M19 acts like M05.
- Q1 S0 lines the key up with plus X. Good for probe and boring bar setup.
Machine builders set many M codes, and they change by model and options. Check the M code list for your machine.
Related codes
M19 on other controls
The same number can mean something different on another control.
| Control | Meaning |
|---|---|
| Fanuc | Spindle orientation |
| 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 |
| Fadal | Spindle stop and orient |
Every M-code for Hurco WinMax (NC) 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 Hurco WinMax M-codes