Home › M-codes › Heidenhain TNC (ISO) › M6
M6 Tool change
Heidenhain TNC (ISO) M-code · Mill
Tool change and spindle stop. Whether it stops the program depends on machine parameters. On most TNC machines the tool change happens with the tool call block.
Format
M6
Addresses
| Address | What it does |
|---|---|
M6 | No addresses |
How it works
Non-modal. Acts at end of block.
Example program
N70 G00 Z+250 M6 *
N80 T2 G17 S4000 *
N90 G01 G40 Z+10 F5000 *
N80 T2 G17 S4000 *
N90 G01 G40 Z+10 F5000 *
Example is in inch. Check offsets and clearances first.
Watch out for
- Many TNC machines do not need M6 because T G17 S already changes the tool. Follow the machine builder setup.
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 |
| Fagor 8055 8065 | Tool change |
| LinuxCNC Tormach | 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 Heidenhain TNC (ISO) 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 Heidenhain TNC M-codes