Heidenhain M Codes
Heidenhain M Codes
M
Code Description
Stop program run (Spindle STOP,Coolant OFF,Go to block 1,Clear the status
M2 display(depending on machine parameter))
M3 Spindle ON clockwise
M4 Spindle ON counterclockwise
M5 Spindle STOP
M8 Coolant ON
M9 Coolant OFF
M30 Same as M2
M91 Within the positioning block: Coordinates are referenced to machine datum
M101 Automatic tool change with replacement tool if maximum tool life has expired
M109 Constant contouring speed at tool cutting edge (increase and decrease feed rate)
M110 Constant contouring speed at tool cutting edge (feed rate decrease only)
M114 Automatic compensation of machine geometry when working with tilted axes
M128 Retain the position of the tool tip when positioning the tilted axes (TCPM)
M130 Moving to position in an untilted coordinate system with a tilted working plane