CNC Machinist Calculator Ultra

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

AddressWhat it does
M19No 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)
…

The full 6-line example is in the app. Example is in inch. Check offsets and clearances first.

Watch out for

Related codes

G76 · G87 · M100

M19 on other controls

The same number can mean something different on another control.

ControlMeaning
FanucSpindle orientation
Haas NGCOrient 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 OSPSpindle orientation (Lathes & Mills)
Mitsubishi M70 M80Spindle orientation
Brother SpeedioSpindle orientation
Siemens 840D 828DSpindle positioning
Fagor 8055 8065Spindle orientation
LinuxCNC TormachSpindle orient
Centroid CNC12 AcornSpindle orient, macro
Hurco WinMax (NC)Spindle orient
FadalSpindle 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

App Store Google Play