Home › M-codes › LinuxCNC Tormach › M6
M6 Tool change
LinuxCNC Tormach M-code · Mill and lathe
Changes to the tool picked by the last T word and stops the spindle. It does not apply the length offset.
Format
T M6
Addresses
| Address | What it does |
|---|---|
T | Tool number to load |
How it works
Non modal.
Example program
G20 G17 G40 G49 G54 G80 G90 G94 (INCH, SAFE START)
G91 G30 Z0 (Z UP)
G90
T2 M6 (CHANGE TO TOOL 2)
…
G91 G30 Z0 (Z UP)
G90
T2 M6 (CHANGE TO TOOL 2)
…
The full 6-line example is in the app. Example is in inch. Check offsets and clearances first.
Watch out for
- Always program G43 after M6.
- With a manual tool changer LinuxCNC shows a prompt and waits.
- Tormach PathPilot mills with an ATC run the change for you. Program T M6 G43 H the same way.
Related codes
M6 on other controls
The same number can mean something different on another control.
| Control | Meaning |
|---|---|
| Fanuc | Tool change |
| Haas NGC | Tool change |
| Doosan (Fanuc) | Atc tool change command |
| DMG Mori MAPPS (Fanuc) | Tool change |
| Mazak (EIA) | Chuck unclamp (releasing workpiece) |
| Okuma OSP | Tool Change |
| Mitsubishi M70 M80 | Tool change |
| Brother Speedio | Tool change |
| Siemens 840D 828D | Tool change |
| Heidenhain TNC (ISO) | Tool change |
| Fagor 8055 8065 | Tool change |
| Mach3 Mach4 | Tool change |
| Centroid CNC12 Acorn | Tool change |
| Hurco WinMax (NC) | Tool change |
| Fadal | Tool change |
| Swiss (Citizen Star) | Main chuck close (Citizen) |
Every M-code for LinuxCNC Tormach 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 M6 in the app All LinuxCNC Tormach M-codes