CNC Machinist Calculator Ultra

Home › M-codes › Haas NGC

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.

CodeMeaningMachine
M00Program stopMill, Lathe
M01Optional stopMill, Lathe
M02Program endMill, Lathe
M03Spindle on clockwise / Spindle on forwardMill, Lathe
M04Spindle on counterclockwise / Spindle on reverseMill, Lathe
M05Spindle stopMill, Lathe
M06Tool changeMill
M07Shower coolant onMill
M08Coolant onMill, Lathe
M09Coolant offMill, Lathe
M104th axis brake on / Chuck clampMill, Lathe
M114th axis brake release / Chuck unclampMill, Lathe
M125th axis brake on / Auto air jet onMill, Lathe
M135th axis brake release / Auto air jet offMill, Lathe
M14Main spindle brake onLathe
M15Main spindle brake offLathe
M16Tool change, same as M06Mill
M17Pallet unclamp and open APC door / Turret rotation forwardMill, Lathe
M18Pallet clamp and close APC door / Turret rotation reverseMill, Lathe
M19Orient spindleMill, Lathe
M21Tailstock advanceLathe
M21-M25Optional user M codes with M-FinMill
M22Tailstock retractLathe
M23Chamfer out of thread onLathe
M24Chamfer out of thread offLathe
M29Set output relay with M-FinMill
M30Program end and resetMill, Lathe
M31Chip auger forwardMill, Lathe
M33Chip auger stopMill, Lathe
M34Coolant spigot downMill
M35Coolant spigot up / Parts catcher part off positionMill, Lathe
M36Pallet part ready / Parts catcher onMill, Lathe
M37Parts catcher offLathe
M38Spindle speed variation onLathe
M39Rotate tool turret / Spindle speed variation offMill, Lathe
M41Spindle low gear override / Spindle low gearMill, Lathe
M42Spindle high gear override / Spindle high gearMill, Lathe
M43Turret unlock, service onlyLathe
M44Turret lock, service onlyLathe
M46Jump if pallet loadedMill
M48Check program is right for loaded palletMill
M49Set status of palletMill
M50Pallet changeMill
M51Built in M code relay 1 onLathe
M51-M58Optional user M codes onMill
M52Built in M code relay 2 onLathe
M53Built in M code relay 3 onLathe
M54Built in M code relay 4 onLathe
M55Built in M code relay 5 onLathe
M56Built in M code relay 6 onLathe
M59Output relay set / Turn on output relayMill, Lathe
M61Built in M code relay 1 offLathe
M61-M68Optional user M codes offMill
M62Built in M code relay 2 offLathe
M63Built in M code relay 3 offLathe
M64Built in M code relay 4 offLathe
M65Built in M code relay 5 offLathe
M66Built in M code relay 6 offLathe
M69Output relay clear / Turn off output relayMill, Lathe
M75Set G35 or G136 reference pointMill
M76Control display inactiveMill
M77Control display activeMill
M78Alarm if skip signal foundMill, Lathe
M79Alarm if skip signal not foundMill, Lathe
M80Automatic door openMill
M81Automatic door closeMill
M82Tool unclampMill
M83Auto air jet onMill
M84Auto air jet offMill
M85Automatic door openLathe
M86Tool clamp / Automatic door closeMill, Lathe
M88Through spindle coolant on / High pressure coolant onMill, Lathe
M89Through spindle coolant off / High pressure coolant offMill, Lathe
M90Fixture clamp input onLathe
M91Fixture clamp input offLathe
M93Axis position capture startMill
M94Axis position capture stopMill
M95Sleep modeMill, Lathe
M96Jump if no input / Jump if no signalMill, Lathe
M97Local subprogram callMill, Lathe
M98Subprogram callMill, Lathe
M99Subprogram return or loopMill, Lathe
M104Probe arm extendLathe
M105Probe arm retractLathe
M109Interactive user inputMill, Lathe
M110Secondary spindle chuck clampLathe
M111Secondary spindle chuck unclampLathe
M112Secondary spindle air blast onLathe
M113Secondary spindle air blast offLathe
M114Secondary spindle brake onLathe
M115Secondary spindle brake offLathe
M119Secondary spindle orientLathe
M121Built in M code relay 1 with M-FinLathe
M122Built in M code relay 2 with M-FinLathe
M123Built in M code relay 3 with M-FinLathe
M124Built in M code relay 4 with M-FinLathe
M125Built in M code relay 5 with M-FinLathe
M126Built in M code relay 6 with M-FinLathe
M129Turn on relay with M-FinLathe
M130Display mediaMill, Lathe
M131Cancel display mediaMill, Lathe
M133Live tool forwardLathe
M134Live tool reverseLathe
M135Live tool stopLathe
M138Spindle speed variation on / Spindle speed variation on, programmableMill, Lathe
M139Spindle speed variation offMill, Lathe
M143Secondary spindle forwardLathe
M144Secondary spindle reverseLathe
M145Secondary spindle stopLathe
M146Steady rest clampLathe
M147Steady rest unclampLathe
M158Mist condenser onMill, Lathe
M159Mist condenser offMill, Lathe
M161PulseJet continuous modeMill
M162PulseJet single event modeMill
M163PulseJet modal modeMill
M174Main chuck pressure adjustLathe
M175Sub spindle chuck pressure adjustLathe
M214Live tool brake onLathe
M215Live tool brake offLathe
M219Live tool orientLathe
M299APL part load or program endLathe
M300APL or robot custom sequenceMill, Lathe
M334P-Cool incrementLathe
M335P-Cool decrementLathe

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

App Store Google Play