Home › M-codes › Fagor 8055 8065 › M19
M19 Spindle orientation
Fagor 8055 8065 M-code · Mill and lathe
Puts the spindle in closed loop and orients it. M19 alone goes to the marker pulse. M19 S gives an angle in degrees.
Format
M19 [S]
Addresses
| Address | What it does |
|---|---|
S | Spindle angle in degrees from the reference mark |
How it works
Not modal. M03 or M04 returns to open loop.
Example program
M05 (SPINDLE STOP)
M19 S90 (ORIENT TO 90 DEGREES)
G00 X0.01 (SHIFT BAR OFF WALL)
M19 S90 (ORIENT TO 90 DEGREES)
G00 X0.01 (SHIFT BAR OFF WALL)
Example is in inch. Check offsets and clearances first.
Watch out for
- S here is an angle, not rpm.
- The first M19 after power up does a spindle home search.
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 |
| 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 Fagor 8055 8065 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 Fagor 8055 8065 M-codes