You are on page 1of 5

M Codes for Milling M/C

M23 ATC Arm up M24 ATC Arm clamping activate

M00 Program stop M01 Optional stop M02 Program end M03 Spindle forward M04 Spindle reverse M05 Spindle stop M06 Tool change M08 Coolant on M09 Coolant off M10 Work clamp open M11 Work clamp close M13 Spindle forward + Coolant on M14 Spindle reverse + Coolant on M19 Spindle orientation M20 ATC Arm in M21 ATC Arm out M22 ATC Arm down

M25 ATC Arm clamping release M27 Reset carousel M32 ATC c/w rotation M33 ATC cc/w rotation M38 Door open M39 Door close M98 Sub program M99 Program repeat ions (Incremental depth) G Codes for Milling M/C

G00 Rapid traverse G01 Linear traverse G02 Circular clockwise G03 Circular counter clockwise G04 Dwell G05 Moves in the same direction as the last arc to be performed

G06 Tangential arc G07 Single arc G11 Linear polar G12 Circular polar c/w G13 Circular polar moves cc/w G15 Moves in the same direction as the last arc to be performed G16 Tangential arc polar G17 Selection of X Y plane G28 Mirror image G30 Blank form (Bottom corner of billet) G31 Blank form (Top corner of billet)

G44 Axis compensation to decrease by tool radius G54 Datum shift G74 Slot milling G75 Rectangular pocket (c/w) G76 Rectangular pocket (cc/w) G77 Circular pocket (c/w) G78 Circular pocket (cc/w) G79 Cycle call G83 Pecking G90 Absolute G91 Incremental G98 Label G99 Tool def

G38 Stop G40 Tool compensation cancel CODES FOR TURNING G41 Tool compensation left M codes G42 Tool compensation right G43 Axis compensation to increase by tool radius M00-----Program stop M01-----Optional stop

M02-----Program reset [End of program] M03-----Spindle forward [CW] M04-----Spindle reverse [CCW] M05-----Spindle stop M06-----Auto tool change M07-----Coolant B on M08-----Coolant A on M09-----Coolant off M10-----Chuck open M11-----Chuck close M13-----Spindle forward & Coolant on [Spin forward]

M21-----Spindle index 2A M22-----Spindle index 3A M23-----Spindle index 4A M25-----Quill extend M26-----Quill retract M29-----Select DNC mode M30-----End of the program & Rewind M31-----Increment parts counter M37-----Door open to stop M38-----Door open M39-----Door close M62-----Out put 1on M63-----Out put 2on

M14-----Spindle reverse & Coolant off [Spin rewind] M15-----Program input using MIN P (Special function) M16-----Special tool call (Tool call ignores turret) M76-----Wait input 1off M19-----Spindle orientate M77-----Wait input 2off M20-----Spindle index A M64-----Out put 1off M65-----Out put 2off M66-----Wait input 1on M67-----Wait input 2on

M98-----Sub program call M99-----Sub program exit

G29-----Return from Reference point G30-----Return to 2nd reference point G31-----Skip function

G Codes G00-----Rapid traverse G01-----Linear movement G02-----Circular movement CW G03-----Circular movement CCW G04-----Dwell for programmed duration G05-----Delay or hold (until resumed by operator) G10-----Offset value setting by program G20-----Inch data input G21-----Metric data input G22-----Stored stroke check on G23-----Stored stroke check off G27-----Reference point return check G28-----Reference point return

G32-----Thread cutting G34-----Variable lead thread cutting G36-----Automatic tool compensation--X G37-----Automatic tool compensationZ G40-----Tool nose radius compensation cancel G41-----Tool nose radius left G42-----Tool nose radius right G50-----Work coordinate/Max. Spindle speed setting G65-----Macro program call G66-----Macro modal call G67-----Macro modal call cancel G70-----Finishing cycle in turning G71-----Stock removal in turning [Multiple turning cycles]

G72-----Stock removal in Facing G73-----Pattern repeating G74-----Peck drilling cycle G75-----Grooving in X axis G76-----Thread cutting cycle [Multiple thread cutting] G81-----Drilling cycle G90-----Input in absolute dimensions G91-----Input in incremental dimensions G92-----Thread cutting cycle G94-----Cutting cycle B [Facing cycle] G96-----Constant surface speed control (constant cutting speed) G97-----Constant surface speed control cancel [Variable surface] G98-----Feed per minute G99-----Feed per revaluation

You might also like