Haas NGC M-code list
125 M-codes. Pick a code for the format, the addresses, an example program and what to watch out for.
| Code | Meaning | Machine |
|---|---|---|
| M00 | Program stop | Mill, Lathe |
| M01 | Optional stop | Mill, Lathe |
| M02 | Program end | Mill, Lathe |
| M03 | Spindle on clockwise / Spindle on forward | Mill, Lathe |
| M04 | Spindle on counterclockwise / Spindle on reverse | Mill, Lathe |
| M05 | Spindle stop | Mill, Lathe |
| M06 | Tool change | Mill |
| M07 | Shower coolant on | Mill |
| M08 | Coolant on | Mill, Lathe |
| M09 | Coolant off | Mill, Lathe |
| M10 | 4th axis brake on / Chuck clamp | Mill, Lathe |
| M11 | 4th axis brake release / Chuck unclamp | Mill, Lathe |
| M12 | 5th axis brake on / Auto air jet on | Mill, Lathe |
| M13 | 5th axis brake release / Auto air jet off | Mill, Lathe |
| M14 | Main spindle brake on | Lathe |
| M15 | Main spindle brake off | Lathe |
| M16 | Tool change, same as M06 | Mill |
| M17 | Pallet unclamp and open APC door / Turret rotation forward | Mill, Lathe |
| M18 | Pallet clamp and close APC door / Turret rotation reverse | Mill, Lathe |
| M19 | Orient spindle | Mill, Lathe |
| M21 | Tailstock advance | Lathe |
| M21-M25 | Optional user M codes with M-Fin | Mill |
| M22 | Tailstock retract | Lathe |
| M23 | Chamfer out of thread on | Lathe |
| M24 | Chamfer out of thread off | Lathe |
| M29 | Set output relay with M-Fin | Mill |
| M30 | Program end and reset | Mill, Lathe |
| M31 | Chip auger forward | Mill, Lathe |
| M33 | Chip auger stop | Mill, Lathe |
| M34 | Coolant spigot down | Mill |
| M35 | Coolant spigot up / Parts catcher part off position | Mill, Lathe |
| M36 | Pallet part ready / Parts catcher on | Mill, Lathe |
| M37 | Parts catcher off | Lathe |
| M38 | Spindle speed variation on | Lathe |
| M39 | Rotate tool turret / Spindle speed variation off | Mill, Lathe |
| M41 | Spindle low gear override / Spindle low gear | Mill, Lathe |
| M42 | Spindle high gear override / Spindle high gear | Mill, Lathe |
| M43 | Turret unlock, service only | Lathe |
| M44 | Turret lock, service only | Lathe |
| M46 | Jump if pallet loaded | Mill |
| M48 | Check program is right for loaded pallet | Mill |
| M49 | Set status of pallet | Mill |
| M50 | Pallet change | Mill |
| M51 | Built in M code relay 1 on | Lathe |
| M51-M58 | Optional user M codes on | Mill |
| M52 | Built in M code relay 2 on | Lathe |
| M53 | Built in M code relay 3 on | Lathe |
| M54 | Built in M code relay 4 on | Lathe |
| M55 | Built in M code relay 5 on | Lathe |
| M56 | Built in M code relay 6 on | Lathe |
| M59 | Output relay set / Turn on output relay | Mill, Lathe |
| M61 | Built in M code relay 1 off | Lathe |
| M61-M68 | Optional user M codes off | Mill |
| M62 | Built in M code relay 2 off | Lathe |
| M63 | Built in M code relay 3 off | Lathe |
| M64 | Built in M code relay 4 off | Lathe |
| M65 | Built in M code relay 5 off | Lathe |
| M66 | Built in M code relay 6 off | Lathe |
| M69 | Output relay clear / Turn off output relay | Mill, Lathe |
| M75 | Set G35 or G136 reference point | Mill |
| M76 | Control display inactive | Mill |
| M77 | Control display active | Mill |
| M78 | Alarm if skip signal found | Mill, Lathe |
| M79 | Alarm if skip signal not found | Mill, Lathe |
| M80 | Automatic door open | Mill |
| M81 | Automatic door close | Mill |
| M82 | Tool unclamp | Mill |
| M83 | Auto air jet on | Mill |
| M84 | Auto air jet off | Mill |
| M85 | Automatic door open | Lathe |
| M86 | Tool clamp / Automatic door close | Mill, Lathe |
| M88 | Through spindle coolant on / High pressure coolant on | Mill, Lathe |
| M89 | Through spindle coolant off / High pressure coolant off | Mill, Lathe |
| M90 | Fixture clamp input on | Lathe |
| M91 | Fixture clamp input off | Lathe |
| M93 | Axis position capture start | Mill |
| M94 | Axis position capture stop | Mill |
| M95 | Sleep mode | Mill, Lathe |
| M96 | Jump if no input / Jump if no signal | Mill, Lathe |
| M97 | Local subprogram call | Mill, Lathe |
| M98 | Subprogram call | Mill, Lathe |
| M99 | Subprogram return or loop | Mill, Lathe |
| M104 | Probe arm extend | Lathe |
| M105 | Probe arm retract | Lathe |
| M109 | Interactive user input | Mill, Lathe |
| M110 | Secondary spindle chuck clamp | Lathe |
| M111 | Secondary spindle chuck unclamp | Lathe |
| M112 | Secondary spindle air blast on | Lathe |
| M113 | Secondary spindle air blast off | Lathe |
| M114 | Secondary spindle brake on | Lathe |
| M115 | Secondary spindle brake off | Lathe |
| M119 | Secondary spindle orient | Lathe |
| M121 | Built in M code relay 1 with M-Fin | Lathe |
| M122 | Built in M code relay 2 with M-Fin | Lathe |
| M123 | Built in M code relay 3 with M-Fin | Lathe |
| M124 | Built in M code relay 4 with M-Fin | Lathe |
| M125 | Built in M code relay 5 with M-Fin | Lathe |
| M126 | Built in M code relay 6 with M-Fin | Lathe |
| M129 | Turn on relay with M-Fin | Lathe |
| M130 | Display media | Mill, Lathe |
| M131 | Cancel display media | Mill, Lathe |
| M133 | Live tool forward | Lathe |
| M134 | Live tool reverse | Lathe |
| M135 | Live tool stop | Lathe |
| M138 | Spindle speed variation on / Spindle speed variation on, programmable | Mill, Lathe |
| M139 | Spindle speed variation off | Mill, Lathe |
| M143 | Secondary spindle forward | Lathe |
| M144 | Secondary spindle reverse | Lathe |
| M145 | Secondary spindle stop | Lathe |
| M146 | Steady rest clamp | Lathe |
| M147 | Steady rest unclamp | Lathe |
| M158 | Mist condenser on | Mill, Lathe |
| M159 | Mist condenser off | Mill, Lathe |
| M161 | PulseJet continuous mode | Mill |
| M162 | PulseJet single event mode | Mill |
| M163 | PulseJet modal mode | Mill |
| M174 | Main chuck pressure adjust | Lathe |
| M175 | Sub spindle chuck pressure adjust | Lathe |
| M214 | Live tool brake on | Lathe |
| M215 | Live tool brake off | Lathe |
| M219 | Live tool orient | Lathe |
| M299 | APL part load or program end | Lathe |
| M300 | APL or robot custom sequence | Mill, Lathe |
| M334 | P-Cool increment | Lathe |
| M335 | P-Cool decrement | Lathe |
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 Haas NGC G-codes