Home › M-codes › Siemens 808D › M6
M6 Tool change
Siemens 808D M-code · Mill and lathe
Changes to the tool preselected with T. Machine data sets whether T alone changes the tool or only preselects it for M6. Lathe turrets usually change on T alone.
Format
T M6 or T D M6
Addresses
| Address | What it does |
|---|---|
T | Tool number 1 to 32000, T0 for no tool |
D | Offset number 1 to 9. D1 if not written, D0 for no offsets. |
How it works
Non modal.
Example program
G0 Z100 ; RETRACT TO SAFE HEIGHT
T14 ; PRESELECT TOOL 14
M6 ; TOOL CHANGE, T14 ACTIVE WITH D1
D2 ; SECOND OFFSET OF T14
…
T14 ; PRESELECT TOOL 14
M6 ; TOOL CHANGE, T14 ACTIVE WITH D1
D2 ; SECOND OFFSET OF T14
…
The full 5-line example is in the app. Example is in inch. Check offsets and clearances first.
Watch out for
- Without a D word, D1 becomes active with the tool.
- The control stores up to 64 tools. The name LL6 is reserved for the tool change subprogram.
- If you change a tool by hand, enter it in MDA with a T block so the control knows the active tool.
Machine builders set many M codes, and they change by model and options. Check the M code list for your machine.
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 |
| Siemens 808D ISO | Tool change |
| Heidenhain TNC (ISO) | 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 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 M6 in the app All Siemens 808D M-codes