Heidenhain M Codes ( Miscellaneous functions) for Heidenhain TNC 640/530/410/426/430/320

Heidenhain TNC 320
Heidenhain M Codes
| M Code | Description |
|---|---|
| M0 | Stop program run (Spindle STOP, Coolant OFF) |
| M1 | Optional program STOP (Spindle STOP, Coolant OFF) |
| M2 | Stop program run (Spindle STOP,Coolant OFF,Go to block 1,Clear the status display(depending on machine parameter)) |
| M3 | Spindle ON clockwise |
| M4 | Spindle ON counterclockwise |
| M5 | Spindle STOP |
| M6 | Tool change (STOP program run (depending on machine parameter),Spindle STOP) |
| M8 | Coolant ON |
| M9 | Coolant OFF |
| M13 | Spindle ON clockwise (Coolant ON) |
| M14 | Spindle ON counterclockwise (Coolant ON) |
| M30 | Same as M2 |
| M89 | Vacant miscellaneous function or Cycle call, modally effective (depending on machine parameter) |
| M91 | Within the positioning block: Coordinates are referenced to machine datum |
| M92 | Within the positioning block: Coordinates are referenced to position defined by machine tool builder, such as tool change position |
| M94 | Reduce the rotary axis display to a value below 360° |
| M97 | Machine small contour steps |
| M98 | Machine open contours completely |
| M99 | Blockwise cycle call (Cycle call, NON-MODAL) |
| M101 | Automatic tool change with replacement tool if maximum tool life has expired |
| M102 | Reset M101 |
| M103 | Reduce feed rate during plunging to factor F (percentage) |
| M104 | Reactivate the datum as last defined |
| M105 | Machining with second kv factor |
| M106 | Machining with first kv factor |
| M107 | Suppress error message for replacement tools with oversize |
| M108 | Reset M107 |
| 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) |
| M111 | Reset M109/M110 |
| M112 | Enter contour transition between two contour elements |
| M113 | Reset M112 |
| M114 | Automatic compensation of machine geometry when working with tilted axes |
| M115 | Reset M114 |
| M116 | Feed rate for rotary axes in mm/min |
| M117 | Reset M116 |
| M118 | Superimpose handwheel positioning during program run |
| M120 | Pre-calculate radius-compensated contour (LOOK AHEAD) |
| M124 | Contour filter |
| M126 | Shortest-path traverse of rotary axes |
| M127 | Reset M126 |
| M128 | Retain the position of the tool tip when positioning the tilted axes (TCPM) |
| M129 | Reset M128 |
| M130 | Moving to position in an untilted coordinate system with a tilted working plane |
| M134 | Exact stop at nontangential contour transitions when positioning with rotary axes |
| M135 | Reset M134 |
| M136 | Feed rate F in millimeters per spindle revolution |
| M137 | Reset M136 |
| M138 | Selection of tilted axes |
| M140 | Retraction from the contour in the tool-axis direction |
| M141 | Suppress touch probe monitoring |
| M142 | Delete modal program information |
| M143 | Delete basic rotation |
| M144 | Compensating the machine’s kinematics configuration for ACTUAL/NOMINAL positions at end of block |
| M145 | Reset M144 |
| M148 | Retract the tool automatically from the contour at NC stop |
| M149 | Reset M148 |
| M150 | Suppress limit switch message |
| M200 | Laser cutting: Output programmed voltage directly |
| M201 | Laser cutting: Output voltage as a function of distance |
| M202 | Laser cutting: Output voltage as a function of speed |
| M203 | Laser cutting: Output voltage as a function of time (ramp) |
| M204 | Laser cutting: Output voltage as a function of time (pulse) |