Fanuc G-code list
99 G-codes. Pick a code for the format, the addresses, an example program and what to watch out for.
| Code | Meaning | Machine |
|---|---|---|
| G00 | Rapid positioning | Mill, Lathe |
| G01 | Linear interpolation at feed rate / Linear interpolation, feed move | Mill, Lathe |
| G02 | Circular interpolation clockwise / Circular interpolation, clockwise | Mill, Lathe |
| G03 | Circular interpolation counterclockwise / Circular interpolation, counterclockwise | Mill, Lathe |
| G04 | Dwell | Mill, Lathe |
| G05.1 | AI contour control on or off | Mill |
| G07.1 | Cylindrical interpolation | Mill, Lathe |
| G08 | Advanced preview control | Mill |
| G09 | Exact stop, one block | Mill and lathe |
| G10 | Programmable data input, offsets / Programmable data input | Mill, Lathe |
| G11 | Cancel programmable data input mode | Mill and lathe |
| G12.1 | Polar coordinate interpolation on | Mill, Lathe |
| G13.1 | Polar coordinate interpolation off | Mill, Lathe |
| G15 | Polar coordinate command cancel | Mill |
| G16 | Polar coordinate command | Mill |
| G17 | XY plane select | Mill, Lathe |
| G18 | ZX plane select | Mill, Lathe |
| G19 | YZ plane select | Mill, Lathe |
| G20 | Inch input | Mill, Lathe |
| G21 | Metric input | Mill, Lathe |
| G22 | Stored stroke check on | Mill, Lathe |
| G23 | Stored stroke check off | Mill, Lathe |
| G27 | Reference position return check | Mill, Lathe |
| G28 | Return to reference position | Mill, Lathe |
| G29 | Return from reference position | Mill |
| G30 | Return to 2nd, 3rd or 4th reference position | Mill, Lathe |
| G31 | Skip function | Mill, Lathe |
| G32 | Thread cutting, single pass | Lathe |
| G33 | Thread cutting, constant lead | Mill |
| G34 | Variable lead thread cutting | Lathe |
| G37 | Automatic tool length measurement | Mill |
| G39 | Corner offset circular interpolation | Mill |
| G40 | Cutter compensation cancel / Tool nose radius compensation cancel | Mill, Lathe |
| G41 | Cutter compensation left / Tool nose radius compensation left | Mill, Lathe |
| G42 | Cutter compensation right / Tool nose radius compensation right | Mill, Lathe |
| G43 | Tool length compensation | Mill |
| G43.4 | Tool center point control type 1 | Mill |
| G43.5 | Tool center point control type 2 | Mill |
| G44 | Tool length compensation minus | Mill |
| G45 | Tool position offset increase | Mill |
| G46 | Tool position offset decrease | Mill |
| G47 | Tool position offset double increase | Mill |
| G48 | Tool position offset double decrease | Mill |
| G49 | Tool length compensation cancel | Mill |
| G50 | Scaling cancel / Maximum spindle speed clamp / Coordinate system setting | Mill, Lathe |
| G50.1 | Programmable mirror image cancel | Mill |
| G51 | Scaling | Mill |
| G51.1 | Programmable mirror image | Mill |
| G52 | Local coordinate system | Mill, Lathe |
| G53 | Machine coordinate system move | Mill, Lathe |
| G53.1 | Tool axis direction control | Mill |
| G54 | Work coordinate system 1 | Mill, Lathe |
| G54.1 | Additional work coordinate systems | Mill |
| G55 | Work coordinate system 2 | Mill, Lathe |
| G56 | Work coordinate system 3 | Mill, Lathe |
| G57 | Work coordinate system 4 | Mill, Lathe |
| G58 | Work coordinate system 5 | Mill, Lathe |
| G59 | Work coordinate system 6 | Mill, Lathe |
| G60 | Single direction positioning | Mill |
| G61 | Exact stop mode | Mill |
| G62 | Automatic corner override | Mill |
| G63 | Tapping mode | Mill |
| G64 | Cutting mode | Mill |
| G65 | Macro call / Custom macro call | Mill, Lathe |
| G66 | Modal macro call | Mill and lathe |
| G67 | Modal macro call cancel | Mill and lathe |
| G68 | Coordinate system rotation | Mill |
| G68.2 | Tilted working plane | Mill |
| G69 | Rotation and tilted plane cancel | Mill |
| G70 | Finishing cycle | Lathe |
| G71 | Stock removal in turning, rough cycle | Lathe |
| G72 | Stock removal in facing, rough cycle | Lathe |
| G73 | High speed peck drilling / Pattern repeating cycle | Mill, Lathe |
| G74 | Left hand tapping cycle / Face peck drilling and face grooving cycle | Mill, Lathe |
| G75 | OD and ID peck grooving cycle | Lathe |
| G76 | Fine boring cycle / Multiple pass threading cycle | Mill, Lathe |
| G80 | Canned cycle cancel / Canned drilling cycle cancel | Mill, Lathe |
| G81 | Drilling cycle | Mill |
| G82 | Drilling cycle with dwell | Mill |
| G83 | Peck drilling cycle / Face drilling cycle, live tool | Mill, Lathe |
| G84 | Tapping cycle / Face tapping cycle | Mill, Lathe |
| G84.2 | Rigid tapping, FS15 format | Mill |
| G84.3 | Left hand rigid tapping, FS15 format | Mill |
| G85 | Boring cycle, feed out / Face boring cycle | Mill, Lathe |
| G86 | Boring cycle, spindle stop | Mill |
| G87 | Back boring cycle / Side drilling cycle, live tool | Mill, Lathe |
| G88 | Boring cycle, manual retract / Side tapping cycle | Mill, Lathe |
| G89 | Boring cycle, dwell and feed out / Side boring cycle | Mill, Lathe |
| G90 | Absolute programming / Outer and inner diameter turning cycle | Mill, Lathe |
| G91 | Incremental programming | Mill |
| G92 | Coordinate system setting / Simple threading cycle | Mill, Lathe |
| G92.1 | Workpiece coordinate system preset | Mill |
| G93 | Inverse time feed | Mill |
| G94 | Feed per minute / Face turning cycle | Mill, Lathe |
| G95 | Feed per revolution | Mill |
| G96 | Constant surface speed / Constant surface speed on | Mill, Lathe |
| G97 | Constant surface speed cancel / Constant RPM, surface speed off | Mill, Lathe |
| G98 | Canned cycle return to initial level / Feed per minute | Mill, Lathe |
| G99 | Canned cycle return to R level / Feed per revolution | Mill, Lathe |
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 Fanuc M-codes