CNC Machinist Calculator Ultra

Home › M-codes › Mach3 Mach4 › M6

M6 Tool change

Mach3 Mach4 M-code · Mill

Runs the tool change macro for the tool named by T. Mach3 runs M6Start, waits for Cycle Start, then runs M6End. Mach4 runs the m6 Lua script in the profile Macros folder.

Format

T M6

Addresses

AddressWhat it does
TTool number, on the same line or earlier

How it works

Non modal.

Example program

G0 G20 G90 G54 G17 G40 G49 G80 (SAFE START, INCH)
M5 M9 (SPINDLE AND COOLANT OFF)
G53 G0 Z0 (Z UP BEFORE CHANGE)
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

Related codes

G43 · M100 · M5

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
Siemens 840D 828DTool change
Heidenhain TNC (ISO)Tool change
Fagor 8055 8065Tool change
LinuxCNC TormachTool change
Centroid CNC12 AcornTool change
Hurco WinMax (NC)Tool change
FadalTool change
Swiss (Citizen Star)Main chuck close (Citizen)

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 M6 in the app All Mach3 Mach4 M-codes

App Store Google Play