Mill G-codes |
| 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 D Cutter Compensation Right |
| G43 E Tool Length Compensation (+) |
| G44 E Tool Length Compensation (-) |
| G49 * E Tool Length Compensation Cancel |
| G50 M Scaling/Mirroring Off (Optional) |
| G51 M Scaling/Mirroring On (Optional) |
| G52 B Offset Local Coordinate System Origin (Optional) |
| G53 B Rapid Position in Machine Coordinates (Optional) |
| G54 L Select Work Coordinate System #1 |
| G55 L Select Work Coordinate System #2 (Optional) |
| G56 L Select Work Coordinate System #3 (Optional) |
| G57 L Select Work Coordinate System #4 (Optional) |
| G58 L Select Work Coordinate System #5 (Optional) |
| G59 L Select Work Coordinate System #6 (Optional) |
| G61 F Exact Stop Mode |
| G64 * F Cutting Mode |
| G65 J Call Macro (Optional) |
| G73 G High Speed Peck Drilling |
| G74 G Counter Tapping (Optional) |
| G80 * G Canned Cycle Cancel |
| G81 G Drilling and Spot Drilling |
| G82 G Drill with Dwell |
| G83 G Deep Hole Drilling |
| G84 G Tapping (Optional) |
| G85 G Boring |
| G89 G Boring with Dwell |
| G90 * H Absolute Positioning Mode |
| G91 H Incremental positioning Mode |
| G92 B Set Absolute position |
| G98 * I Initial Point Return |
| G99 I R Point Return |
| G117 * C Rotation of Plane Selection XY |
| G118 C Rotation of Plane Selection ZX |
| G119 C Rotation of Plane Selection YZ |
Mill M-codes |
| M00 - Stop For Operator |
| M01 - Optional Stop for Operator |
| M02 - Restart Program |
| M03 - Spindle On Clockwise |
| M04 - Spindle On Counterclockwise |
| M05 - Spindle Stop |
| M06 - Tool Change |
| M07 - Mist Coolant On |
| M08 - Flood Coolant On |
| M09 - Coolant Off |
| M10 - Clamp On |
| M11 - Clamp Off |
| M25 - Move To Z Home |
| M26 - Set Axis Home |
| M39 - Air Drill |
| M91 - Move to Minus Home |
| M92 - Move to Plus Home |
| M93 - Release Motor Power |
| M94/M95 - Output On/Off |
| M98 - Call Subprogram (Optional) |
| M99 - Return From Macro or 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/M116/M125/M126 - Protected Move Probing Functions |
| M120 - Open data file (overwrite existing file) |
| M121 - Open data file (append to existing file) |
| M122 - Record position(s) and optional comment in data file |
| M123 - Record value and/or comment in data file |