G code list
G-codes are the main motion control commands in CNC programming. They determine how the cutting tool or the
machine table moves along multiple axes within the machine’s coordinate system. G-codes define operations such
as rapid moves, linear and circular interpolation, and drilling cycles. Most G-codes operate in modal groups,
meaning the selected command stays active until another command from the same group overrides it.
| Name | Meaning | Machine type |
|---|---|---|
| G00 | Rapid positioning | Mill / Lathe |
| G01 | Linear interpolation | Mill / Lathe |
| G02 | Clockwise circular interpolation | Mill / Lathe |
| G03 | Counterclockwise ircular interpolation | Mill / Lathe |
| G10 | Set data (L2, L10, L11, L12, L13) | Mill / Lathe |
| G12.1 | Polar coordinate interpolation on | Lathe |
| G13.1 | Polar coordinate interpolation off | Lathe |
| G15 | Cancel polar programming | Mill |
| G16 | Polar programming | Mill |
| G17 | XY plane selection | Mill / Lathe |
| G18 | XZ plane selection | Lathe |
| G20 | Imperial mode | Mill / Lathe |
| G21 | Metric mode | Mill / Lathe |
| G28 | Return to home position | Mill / Lathe |
| G30 | Return to home position specified by the parameters | Mill / Lathe |
| G32 | Thread cutting | Lathe |
| G33 | Thread cutting | Lathe |
| G43 | Tool length (height) compensation | Mill |
| G50 | Cancel scaling coordinate | Mill |
| G51 | Scaling coordinate | Mill |
| G52 | Local (programmable) coordinate | Mill |
| G53 | Machine coordinate | Mill / Lathe |
| G54 ... G59 | Work coordinate | Mill / Lathe |
| G65 | Macro call | Mill / Lathe |
| G66 | Macro modal call | Mill / Lathe |
| G66.1 | Macro modal call | Mill / Lathe |
| G68 | Coordinate rotation | Mill |
| G69 | Cancel coordinate rotation | Mill |
| G70 | Finishing cycle | Lathe |
| G71 | Roughing cycle | Lathe |
| G72 | Facing cycle | Lathe |
| G73 | Fast peck drilling | Mill |
| G73 | Pattern repeating cycle | Lathe |
| G74 | Face grooving cycle (peck drilling) | Lathe |
| G75 | Grooving cycle | Lathe |
| G76 | Threading cycle | Lathe |
| G78 | Threading cycle | Lathe |
| G80 | Cancel canned cycle | Mill |
| G81 | Simple drilling canned cycle | Mill |
| G82 | Dwell drilling canned cycle | Mill |
| G83 | Peck drilling canned cycle | Mill |
| G84 | Tapping canned cycle | Mill |
| G85 | Boring canned cycle | Mill |
| G87 | Radial drilling | Lathe |
| G88 | Radial tapping | Lathe |
| G90 | Absolute programming | Mill |
| G90 | Straight and tapered cycle | Lathe |
| G91 | Incremental programming | Mill |
| G92 | Threading cycle | Lathe |
| G94 | Simple facing cycle | Lathe |
| G96 | Constant surface speed | Lathe |
| G98 | In the canned cycle, is it a return to initial "Z" value position | Mill |
| G99 | In the canned cycle, is it a return to "R" value position | Mill |
| G112 | Polar coordinate interpolation on | Lathe |
| G113 | Polar coordinate interpolation off | Lathe |