Lathe G-codes |
| G00 Rapid Positioning |
| G01 Linear Interpolation |
| G02 Circular or Helical Interpolation CW |
| G03 Circular or Helical Interpolation CCW |
| G04 Dwell |
| G10 Parameter Setting |
| G20 Select Inch Units |
| G21 Select Metric Units |
| G28 Return to Reference Point |
| G29 Return from Reference Point |
| G30 Return to Secondary Reference Point |
| G32 Constant Lead Thread Cutting |
| G40 Cutter Diameter Compensation Cancel |
| G41 Cutter Diameter Compensation Left |
| G42 Cutter Diameter Compensation Right |
| G50 Coordinate System Setting, Max. Spindle Speed Setting |
| G52 Offset Local Coordinate System |
| 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 |
| G65 Call Macro |
| G70 Finishing Cycle |
| G71 Stock Removal in Turning |
| G72 Stock Removal in Facing |
| G74 End Face Peck Cutting |
| G75 Outer/Inner Diameter Peck Cutting Cycle |
| G76 Multi-Pass Threading Cycle |
| G80 Cancel Canned Cycle |
| G83 Deep Hole Drilling |
| G84 Tapping (Optional) |
| G85 Boring Cycle |
| G90 Outer/Inner Diameter Cutting Cycle |
| G92 One-Pass Threading Cycle |
| G94 End Face Cutting Cycle |
| G96 Constant Surface Speed |
| G97 Constant Surface Speed Cancel |
| G98 Per Minute Feed |
| G99 Per Revolution Feed |
Lathe 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 |
| M26 - Set Axis Home |
| M29- Set Tap Mode for G84 |
| M50 - C Axis Disable / M51 - C Axis Enable |
| 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 |