Home › M-codes › Siemens 808D › M19
M19 Spindle positioning to set angle
Siemens 808D M-code · Mill and lathe
Positions the spindle to the angle preset in setting data SD43240 and holds it in position control. The milling list gives this as 0 degrees. SPOS= is the way to stop at a chosen angle.
Format
M19
How it works
The spindle stays in position control until the next M3, M4 or M5.
Example program
M5 ; SPINDLE STOP
M19 ; ORIENT SPINDLE
SPOS=90 ; OR POSITION TO 90 DEGREES
M19 ; ORIENT SPINDLE
SPOS=90 ; OR POSITION TO 90 DEGREES
Example is in inch. Check offsets and clearances first.
Watch out for
- The block is not finished until the spindle is in position.
- Use SPOS= in the program when a different angle is needed.
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 |
| Siemens 808D ISO | Spindle orientation |
| 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 Siemens 808D 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 Siemens 808D M-codes