Home › M-codes › Heidenhain TNC (ISO)
Heidenhain TNC (ISO) M-code list
50 M-codes. Pick a code for the format, the addresses, an example program and what to watch out for.
| Code | Meaning | Machine |
|---|---|---|
| M0 | Program stop | Mill |
| M1 | Optional program stop | Mill |
| M2 | End of program | Mill |
| M3 | Spindle on clockwise | Mill |
| M4 | Spindle on counterclockwise | Mill |
| M5 | Spindle stop | Mill |
| M6 | Tool change | Mill |
| M8 | Coolant on | Mill |
| M9 | Coolant off | Mill |
| M13 | Spindle clockwise and coolant on | Mill |
| M14 | Spindle counterclockwise and coolant on | Mill |
| M30 | End of program, same as M2 | Mill |
| M89 | Modal cycle call | Mill |
| M91 | Coordinates in machine datum | Mill |
| M92 | Coordinates in machine builder position | Mill |
| M94 | Reduce rotary axis display under 360 | Mill |
| M97 | Machine small contour steps | Mill |
| M98 | Machine open contours completely | Mill |
| M99 | Cycle call in a positioning block | Mill |
| M101 | Replacement tool when life expires | Mill |
| M102 | Reset M101 | Mill |
| M103 | Reduce feed when plunging | Mill |
| M109 | Constant feed at the cutting edge | Mill |
| M110 | Constant edge feed, reduce only | Mill |
| M111 | Reset M109 and M110 | Mill |
| M112 | Contour transition between elements | Mill |
| M114 | Machine geometry compensation for tilt | Mill |
| M116 | Rotary axis feed in mm per min | Mill |
| M117 | Reset M116 | Mill |
| M118 | Handwheel overlay during program run | Mill |
| M120 | Look ahead for radius compensation | Mill |
| M124 | Contour filter | Mill |
| M126 | Shortest path for rotary axes | Mill |
| M127 | Reset M126 | Mill |
| M128 | Keep tool tip position TCPM | Mill |
| M129 | Reset M128 | Mill |
| M130 | Untilted coordinates in tilted plane | Mill |
| M134 | Exact stop at rotary transitions | Mill |
| M135 | Reset M134 | Mill |
| M136 | Feed in mm per revolution | Mill |
| M137 | Reset M136 | Mill |
| M138 | Select tilting axes | Mill |
| M140 | Retract in the tool axis | Mill |
| M141 | Suppress touch probe monitoring | Mill |
| M143 | Delete basic rotation | Mill |
| M144 | Kinematics compensation for positions | Mill |
| M145 | Reset M144 | Mill |
| M148 | Auto lift off at NC stop | Mill |
| M149 | Reset M148 | Mill |
| M150 | Suppress limit switch message | Mill |
Take the list to the machine. The app searches every code by number or shop word and decodes a whole program line by line.
Open the M-code list Heidenhain TNC G-codes