Heidenhain M Code list for CNC machinists who work on CNC machines with Heidenhain TNC 426 and similar CNC controls.
Heidenhain M Code List
M Code Function
M0 Program stop
M1 Optional stop (program stop only with opt. stop)
M2 Program end
M3 Spindle ON clockwise
M4 Spindle ON counterclockwise
M5 Spindle Stop
M6 Tool change
M8 Coolant ON
M9 Coolant OFF
M10 Dividing head, clamping ON
M11 Dividing head, clamping OFF
M17 End of subprogram
M25 OPEN clamp/ machine vice
M26 CLOSE clamp/ machine vice
M27 Swivel dividing head
M30 Main program end
M71 Puff blowing device ON
M72 Puff blowing device OFF
M99 Cycle call