CNC Machinist Calculator Ultra

Home › M-codes › Siemens 840D 828D › M6

M6 Tool change

Siemens 840D 828D M-code · Mill and lathe

Changes to the tool selected with T. The D number activates the tool offset. On many lathes the turret indexes on T alone without M6, set by machine data.

Format

T M6 or T D M6

Addresses

AddressWhat it does
TTool number or tool name, for example T="DRILL10"
DOffset number of the tool, D1 if not written on most machines

How it works

Non modal.

Example program

G0 SUPA Z0 D0 ; Z TO MACHINE ZERO
T="DRILL10" ; SELECT TOOL BY NAME
M6 ; CHANGE TOOL
D1 ; OFFSET ON

Example is in inch. Check offsets and clearances first.

Watch out for

Machine builders set many M codes, and they change by model and options. Check the M code list for your machine.

Related codes

M3 · M1

M6 on other controls

The same number can mean something different on another control.

ControlMeaning
FanucTool change
Haas NGCTool change
Doosan (Fanuc)Atc tool change command
DMG Mori MAPPS (Fanuc)Tool change
Mazak (EIA)Chuck unclamp (releasing workpiece)
Okuma OSPTool Change
Mitsubishi M70 M80Tool change
Brother SpeedioTool change
Heidenhain TNC (ISO)Tool change
Fagor 8055 8065Tool change
LinuxCNC TormachTool change
Mach3 Mach4Tool change
Centroid CNC12 AcornTool change
Hurco WinMax (NC)Tool change
FadalTool change
Swiss (Citizen Star)Main chuck close (Citizen)

Every M-code for Siemens 840D 828D 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 840D 828D M-codes

App Store Google Play