Home › M-codes › Mach3 Mach4 › M19
M19 Spindle orient
Mach3 Mach4 M-code · Mill
Not built into Mach. It must be written as a macro by the builder or user. G76, G87 and tool changers need it.
Verify on your machine. This entry could not be fully checked against the maker manual. Check your machine manual before you run it.
Format
M19
Addresses
| Address | What it does |
|---|---|
M19 | No address words |
How it works
Depends on the macro.
Example program
G0 G20 G90 G54 G17 G40 G49 G80 (SAFE START, INCH)
T4 M6 (BORING BAR)
G43 H4 Z1.0 (LENGTH OFFSET)
M5 (SPINDLE OFF)
…
T4 M6 (BORING BAR)
G43 H4 Z1.0 (LENGTH OFFSET)
M5 (SPINDLE OFF)
…
The full 6-line example is in the app. Example is in inch. Check offsets and clearances first.
Watch out for
- If the machine cannot orient, the Mach4 guide suggests an M19 macro that stops the spindle and does M0 so you can turn it by hand.
- Check what your M19 macro does before a G76 or G87 runs it.
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 |
| Centroid CNC12 Acorn | Spindle orient, macro |
| Hurco WinMax (NC) | Spindle orient |
| Fadal | Spindle stop and orient |
Every M-code for Mach3 Mach4 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 Mach3 Mach4 M-codes