Lathe Machine G Codes

The CNC Lathe Machine G Codes

G00 Rapid position
G01 Linear interpolation
G02 Circular or helix interpolation CW
G03 Circular or helix 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 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 working coordinate system #1
G55 Select working coordinate system #2
G56 Select working coordinate system #3
G57 Select working coordinate system #4
G58 Select working coordinate system #5
G59 Select working coordinate system #6
G54 P1 Select working coordinate system #7
G54 P2 Select working coordinate system #8
G54 P3 Select working coordinate system #9
G54 P4 Select working coordinate system #10
G54 P5 Select working coordinate system #11
G54 P6 Select working coordinate system #12
G54 P7 Select working coordinate system #13
G54 P8 Select working coordinate system #14
G54 P9 Select working coordinate system #15
G54 P10 Select working coordinate system #16
G54 P11 Select working coordinate system #17
G54 P12 Select working coordinate system #18
G65 Call macro
G70 Finishing cycle
G72 Stock removal in facing
G74 End face peck cutting
G75 Outer/inner diameter peck cutting cycle
G76 Multi-pass threading cycle
G80 Canned cycle cancel
G83 Deep hole drilling
G84 Tapping
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