
M-Series Operator’s Manual 10/29/03 1-6
Mill M and G Codes
This is a summary list of M and G codes. See Chapters 12 – 13 for more information.
M00 Stop for operator
M01 Optional Stop for operator
M02 Restart Program
M03 Spindle on CW
M04 Spindle on CCW
M05 Spindle off
M06 Start Tool Change
M07 Mist Coolant on
M08 Flood Coolant on
M09 Coolant off
M10 Clamp on
M11 Clamp off
M15 Unclamp tool, air on
M16 Unclamp tool, air off
M18 Home tool changer
M19 Orient spindle
M20 Pick up tool
M21 Move head up
M22 Move head to ATC level
M23 Rotate carousel
M24 Start tool put back
M25 Move to Z home
M26 Set axis home
M39 Air drill
M50 Index tool plus
M51 Index tool minus
M80 Carousel in
M81 Carousel out
M91 Move to minus home
M92 Move to plus home
M93 Release motor power
M94 Turn on input X
M95 Turn off input X
M98 Call subprogram
M99 Return from subprogram
M100 Wait for input to open
M101 Wait for input to close
M102 Restart program
M103 Programmed action timer
M104 Cancel programmed action timer
M105 Move minus to switch
M106 Move plus to switch
M107 Output BCD tool number
M108 Enable override controls
M109 Disable override controls
M115 Protected probing move
M116 Protected probing move
M120 Open data file (overwrite existing file)
M121 Open data file (append to existing file)
M122 Record position(s) and/or comment in data field
M123 Record value and/or comment in data field
M125 Protected probing move
M126 Protected probing move
G00 Rapid Positioning
G01 Linear Interpolation
G02 Circular or Helical Interpolation CW
G03 Circular or Helical Interpolation CCW
G04 Dwell
G09 Exact Stop
G10 Parameter Setting
G17 Circular Interpolation Plane Selection XY
G18 Circular Interpolation Plane Selection ZX
G19 Circular Interpolation Plane Selection YZ
G20 Select Inch Units
G21 Select Metric Units
G28 Return to Reference Point
G29 Return from Reference Point
G30 Return to Secondary Reference Point
G40 Cutter Compensation Cancel
G41 Cutter Compensation Left
G42 Cutter Compensation Right
G43 Tool Length Compensation (+)
G44 Tool Length Compensation (-)
G49 Tool Length Compensation Cancel
G50 Scaling/Mirroring Off (Optional)
G51 Scaling/Mirroring On (Optional)
G52 Offset Local Coordinate System Origin
G53 Rapid Position in Machine Coordinates
G54 Select Work Coordinate System #1
G55 Select Work Coordinate System #2
G56 Select Work Coordinate System #3
G57 Select Work Coordinate System #4
G58 Select Work Coordinate System #5
G59 Select Work Coordinate System #6
G61 Exact Stop Mode
G64 Cutting Mode
G65 Call Macro
G73 High Speed Peck Drilling
G74 Counter Tapping
G80 Canned Cycle Cancel
G81 Drilling and Spot Drilling
G82 Drill with Dwell
G83 Deep Hole Drilling
G84 Tapping
G85 Boring
G89 Boring with Dwell
G90 Absolute Positioning Mode
G91 Incremental positioning Mode
G92 Set Absolute position
G98 Initial Point Return
G99 R Point Return
G117 Rotation of Plane Selection XY
G118 Rotation of Plane Selection ZX
G119 Rotation of Plane Selection YZ