Home › G-codes › LinuxCNC Tormach
LinuxCNC Tormach G-code list
88 G-codes. Pick a code for the format, the addresses, an example program and what to watch out for.
| Code | Meaning | Machine |
|---|---|---|
| G0 | Rapid move | Mill and lathe |
| G1 | Linear feed move | Mill and lathe |
| G2 | Clockwise arc or helix | Mill and lathe |
| G3 | Counterclockwise arc or helix | Mill and lathe |
| G4 | Dwell | Mill and lathe |
| G5 | Cubic spline | Mill |
| G5.1 | Quadratic spline | Mill |
| G5.2 | NURBS block start | Mill |
| G5.3 | NURBS block end | Mill |
| G7 | Lathe diameter mode | Lathe |
| G8 | Lathe radius mode | Lathe |
| G10 L1 | Set tool table entry | Mill and lathe |
| G10 L10 | Set tool offset from current position | Mill and lathe |
| G10 L11 | Set tool offset from fixture G59.3 | Mill and lathe |
| G10 L2 | Set work offset by value | Mill and lathe |
| G10 L20 | Set work offset from current position | Mill and lathe |
| G17 | XY plane select | Mill and lathe |
| G17.1 | UV plane select | Mill and lathe |
| G18 | XZ plane select | Mill and lathe |
| G18.1 | WU plane select | Mill and lathe |
| G19 | YZ plane select | Mill and lathe |
| G19.1 | VW plane select | Mill and lathe |
| G20 | Inch units | Mill and lathe |
| G21 | Millimeter units | Mill and lathe |
| G28 | Go to stored position 1 | Mill and lathe |
| G28.1 | Store position 1 | Mill and lathe |
| G30 | Go to stored position 2 | Mill and lathe |
| G30.1 | Store position 2 | Mill and lathe |
| G33 | Spindle synchronized motion | Mill and lathe |
| G33.1 | Rigid tapping | Mill and lathe |
| G38.2 | Probe toward part, error on miss | Mill and lathe |
| G38.3 | Probe toward part, no error | Mill and lathe |
| G38.4 | Probe away from part, error on miss | Mill and lathe |
| G38.5 | Probe away from part, no error | Mill and lathe |
| G40 | Cutter compensation off | Mill and lathe |
| G41 | Cutter compensation left | Mill and lathe |
| G41.1 | Cutter comp left, programmed diameter | Mill and lathe |
| G42 | Cutter compensation right | Mill and lathe |
| G42.1 | Cutter comp right, programmed diameter | Mill and lathe |
| G43 | Tool length offset on | Mill and lathe |
| G43.1 | Dynamic tool length offset | Mill and lathe |
| G43.2 | Add tool length offset | Mill and lathe |
| G49 | Tool length offset cancel | Mill and lathe |
| G52 | Local coordinate offset | Mill and lathe |
| G53 | Move in machine coordinates | Mill and lathe |
| G54 | Work coordinate system 1 | Mill and lathe |
| G55 | Work coordinate system 2 | Mill and lathe |
| G56 | Work coordinate system 3 | Mill and lathe |
| G57 | Work coordinate system 4 | Mill and lathe |
| G58 | Work coordinate system 5 | Mill and lathe |
| G59 | Work coordinate system 6 | Mill and lathe |
| G59.1 | Work coordinate system 7 | Mill and lathe |
| G59.2 | Work coordinate system 8 | Mill and lathe |
| G59.3 | Work coordinate system 9 | Mill and lathe |
| G61 | Exact path mode | Mill and lathe |
| G61.1 | Exact stop mode | Mill and lathe |
| G64 | Path blending | Mill and lathe |
| G70 | Lathe finishing cycle | Lathe |
| G71 | Lathe roughing cycle, along Z | Lathe |
| G72 | Lathe roughing cycle, facing along X | Lathe |
| G73 | Chip breaking drill cycle | Mill |
| G74 | Left hand tapping cycle | Mill |
| G76 | Lathe multi pass threading | Lathe |
| G80 | Cancel canned cycle | Mill |
| G81 | Drill cycle | Mill |
| G82 | Drill cycle with dwell | Mill |
| G83 | Peck drill cycle | Mill |
| G84 | Right hand tapping cycle | Mill |
| G85 | Boring cycle, feed out | Mill |
| G86 | Boring cycle, spindle stop, rapid out | Mill |
| G87 | Back boring cycle, not implemented | Mill |
| G88 | Boring cycle, manual out, not implemented | Mill |
| G89 | Boring cycle, dwell, feed out | Mill |
| G90 | Absolute distance mode | Mill and lathe |
| G90.1 | Absolute arc center mode | Mill and lathe |
| G91 | Incremental distance mode | Mill and lathe |
| G91.1 | Incremental arc center mode | Mill and lathe |
| G92 | Coordinate system offset | Mill and lathe |
| G92.1 | Reset G92 offset and clear it | Mill and lathe |
| G92.2 | Reset G92 offset, keep values | Mill and lathe |
| G92.3 | Restore G92 offset | Mill and lathe |
| G93 | Inverse time feed | Mill and lathe |
| G94 | Feed per minute | Mill and lathe |
| G95 | Feed per revolution | Mill and lathe |
| G96 | Constant surface speed | Lathe |
| G97 | Spindle RPM mode | Lathe |
| G98 | Cycle retract to start height | Mill |
| G99 | Cycle retract to R plane | Mill |
Take the list to the machine. The app searches every code by number or shop word and decodes a whole program line by line.
Open the G-code list LinuxCNC Tormach M-codes