CNC Machinist Calculator Ultra

Home › M-codes › Mazak (EIA)

Mazak (EIA) M-code list

181 M-codes. Pick a code for the format, the addresses, an example program and what to watch out for.

Machine builders set many M codes, and they change by model and options. Check the M code list for your machine.

CodeMeaningMachine
M00Program stopMill and lathe
M01Optional stopMill and lathe
M02Program endMill and lathe
M03Spindle normal rotationMill and lathe
M04Spindle reverse rotationMill and lathe
M05Spindle stopMill and lathe
M06Chuck unclamp (releasing workpiece)Mill and lathe
M07Chuck clamp (holding workpiece)Mill and lathe
M08Flood coolant ONMill and lathe
M09Coolant OFFMill and lathe
M12Milling spindle mode cancel (Turning mode selection)Mill and lathe
M13Milling tool normal rotationMill and lathe
M14Milling tool reverse rotationMill and lathe
M15Milling tool stopMill and lathe
M16Spindle orientation 0° (for AJC)Mill and lathe
M17Spindle orientation 120° (for AJC)Mill and lathe
M18Spindle orientation 240° (for AJC)Mill and lathe
M19Spindle orientation position (for the robot to insert a workpiece)Mill and lathe
M20Robot service callMill and lathe
M21Robot service callMill and lathe
M22Robot service callMill and lathe
M23Robot service callMill and lathe
M24Robot service callMill and lathe
M25Robot service callMill and lathe
M26Robot service callMill and lathe
M27Robot service callMill and lathe
M28Robot service callMill and lathe
M29Robot service callMill and lathe
M30Reset & tape rewindMill and lathe
M31Tail spindle & tailstock body advance (for 300 or 400-III or IIIT)Mill and lathe
M32Tail spindle & tailstock body retract (for 300 or 400-III or IIIT)Mill and lathe
M33Low chuck pressureMill and lathe
M34High chuck pressureMill and lathe
M45Air coolant blow ON (coolant stop: M09)Mill and lathe
M48Parts catcher advanceMill and lathe
M49Parts catcher retractMill and lathe
M51Error detect OFFMill and lathe
M52Error detect ONMill and lathe
M53Chamfering OFFMill and lathe
M54Chamfering ONMill and lathe
M55Piece countMill and lathe
M56Front door openMill and lathe
M57Front door closeMill and lathe
M58Chuck air blastMill and lathe
M60C-axis unclampMill and lathe
M66C-axis clampMill and lathe
M67C-axis brake (for machining by G01)Mill and lathe
M68Cycle bar feeder call 1Mill and lathe
M69Cycle bar feeder call 2Mill and lathe
M72Inside chuck clampMill and lathe
M73Outside chuck clampMill and lathe
M74Steady rest – milling head connection mode releaseMill and lathe
M75Steady rest – milling head connection mode startMill and lathe
M81Workpiece measurement startMill and lathe
M82Workpiece measurement endMill and lathe
M83Tool measurement startMill and lathe
M84Tool measurement endMill and lathe
M86Steady rest 1 unclampMill and lathe
M87Steady rest 1 clampMill and lathe
M88Steady rest 2 unclampMill and lathe
M89Steady rest 2 clampMill and lathe
M96User macro interruption, validMill and lathe
M97User macro interruption, invalidMill and lathe
M98EIA → EIA Subprogram callMill and lathe
M99EIA → EIA Return to main EIA programMill and lathe
M100Workpiece measurement DIA startMill and lathe
M101Workpiece measurement DIA endMill and lathe
M102Workpiece measurement STP startMill and lathe
M103Workpiece measurement STP endMill and lathe
M104Workpiece measurement GRV startMill and lathe
M105Workpiece measurement GRV endMill and lathe
M106Workpiece measurement WID startMill and lathe
M107Workpiece measurement WID endMill and lathe
M108Workpiece measurement DIS start (chuck barrier release)Mill and lathe
M109Workpiece measurement DIS endMill and lathe
M110Tool tip measurement TOL startMill and lathe
M111Tool tip measurement TOL endMill and lathe
M112External tool compensation EXT startMill and lathe
M113External tool compensation EXT endMill and lathe
M114Z-axis offset measurement ZOF startMill and lathe
M115Z-axis offset measurement ZOF endMill and lathe
M116C-axis offset measurement COF startMill and lathe
M117C-axis offset measurement COF endMill and lathe
M120Measurement data print outMill and lathe
M150Workpiece unload demand to robotMill and lathe
M151Milling spindle through air blow ON (Only for turning tools)Mill and lathe
M152Milling spindle through air blow OFF (Only for turning tools)Mill and lathe
M153Milling spindle through coolant ONMill and lathe
M154Milling spindle through coolant OFFMill and lathe
M155Chuck coolant ON (composed movement)Mill and lathe
M156Chuck coolant OFF (composed movement)Mill and lathe
M157Spindle through coolant blow ON (OFF: M159)Mill and lathe
M158Spindle through air blow ON (OFF: M159)Mill and lathe
M159M157, M158 OFFMill and lathe
M160Shower coolant ON or chuck stopper extendMill and lathe
M161Shower coolant OFF or chuck stopper retractMill and lathe
M162Workpiece rechucking (for a piece delivered by robot)Mill and lathe
M163Tail spindle thrust low pressure (for 300 or 400-III or IIIT)Mill and lathe
M164Tail spindle thrust high pressure (for 300 or 400-III or IIIT)Mill and lathe
M16935K, 70K high pressure coolant ON (OFF: M9, M154)Mill and lathe
M172Index 0°(KOUYOU)Mill and lathe
M173Index 90°(KOUYOU)Mill and lathe
M174Index 180°(KOUYOU)Mill and lathe
M175Index 270°(KOUYOU)Mill and lathe
M176Index 270°(KOUYOU)Mill and lathe
M177Index 270°(KOUYOU)Mill and lathe
M178Index 270°(KOUYOU)Mill and lathe
M179Index 270°(KOUYOU)Mill and lathe
M198EIA → MAZATROL program callMill and lathe
M199EIA → MAZATROL program endMill and lathe
M200Milling point machining startMill and lathe
M201Milling line machining startMill and lathe
M202Turning modeMill and lathe
M203Milling tool normal rotationMill and lathe
M204Milling tool reverse rotationMill and lathe
M205Milling tool stopMill and lathe
M207M208, M209 mode cancelMill and lathe
M208ATC prohibition mode during finishing, coolant ONMill and lathe
M209ATC prohibition mode during finishing, coolant OFFMill and lathe
M210C-axis clamp (for milling)Mill and lathe
M211C-axis brake (for milling)Mill and lathe
M212C-axis unclamp (for milling)Mill and lathe
M213C-axis brake only (brake by M211)Mill and lathe
M214C-axis unclamp only (unclamp by M212)Mill and lathe
M215M213, M214 and M216 mode cancelMill and lathe
M216C-axis unclamp neglect mode (cancel: M215)Mill and lathe
M219Milling tool orientMill and lathe
M230Grinding mode ONMill and lathe
M231Grinding speed settingMill and lathe
M236C-axis servo gain normalMill and lathe
M237C-axis servo gain lowMill and lathe
M238C-axis servo gain middleMill and lathe
M239C-axis servo gain highMill and lathe
M248Spindle speed check (for interlocking the start of cutting)Mill and lathe
M249Milling head selection preparationMill and lathe
M250Milling head or B-axis unclampMill and lathe
M251B-axis clampMill and lathe
M252Milling spindle unclampMill and lathe
M253Milling spindle clampMill and lathe
M254Milling head or B-axis clampMill and lathe
M258Milling head air blowMill and lathe
M260Polygon mode ONMill and lathe
M261Polygon mode OFFMill and lathe
M274Steady rest coolant ONMill and lathe
M275Steady rest coolant OFFMill and lathe
M331Spindle coil change fixed to high speedMill and lathe
M332Spindle coil change, validMill and lathe
M348Yt-axis selectionMill and lathe
M349Y-axis selectionMill and lathe
M351M352 cancelMill and lathe
M352Spindle speed arrival signal check, validMill and lathe
M370Axis load detection, invalidMill and lathe
M371Axis load detection, validMill and lathe
M372Axis load detection, temporarily invalidMill and lathe
M373Axis load detection, re-startMill and lathe
M374NC feed holding on overload detectionMill and lathe
M375NC feed holding & spindle stop on overload detectionMill and lathe
M376Overload detection level % settingMill and lathe
M377Overload detection time setting (unit: 0.1 sec)Mill and lathe
M378Overload detection peak % or detection frequency settingMill and lathe
M379Overload detection table No. registrationMill and lathe
M390M391 cancelMill and lathe
M391Spindle mis-chucking cancel (M3 or M4 completed with chuck open)Mill and lathe
M394TOOL EYE extension possible during chuck close (when robot valid)Mill and lathe
M395M394 cancelMill and lathe
M601Magazine tool rotationMill and lathe
M731Tail thrust 1 selectionMill and lathe
M732Tail thrust 2 selectionMill and lathe
M733Tail thrust 3 selectionMill and lathe
M734Tail thrust 4 selectionMill and lathe
M735Tail thrust 5 selectionMill and lathe
M736Tail thrust 6 selectionMill and lathe
M737Tail thrust 7 selectionMill and lathe
M738Tail thrust 8 selectionMill and lathe
M739Tail thrust 9 selectionMill and lathe
M740Tail thrust 10 selectionMill and lathe
M741Positioning tailstock to "Position 1"Mill and lathe
M742Positioning tailstock to "Position 2"Mill and lathe
M743Positioning tailstock to "Retract"Mill and lathe
M928Y-axis zero point returnMill and lathe
M930Yt-axis moving to ATC positionMill and 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 Mazak G-codes

App Store Google Play