bg

Lathe G code list (Fanuc G code system C)

The table below uses Fanuc lathe G code system C. Many lathes use system A instead, where several numbers mean something else:

FunctionSystem ASystem C (this page)
Inch / metric inputG20 / G21G70 / G71
Thread cuttingG32G33
Coordinate system setting, maximum spindle speedG50G92
Finishing cycleG70G72
Stock removal in turning / in facingG71 / G72G73 / G74
Pattern repeatingG73G75
Face peck drilling / grooving / multiple threading cycleG74 / G75 / G76G76 / G77 / G78
Turning cycle A / thread cutting cycle / facing cycle BG90 / G92 / G94G20 / G21 / G24
Feed per minute / per revolutionG98 / G99G94 / G95
Absolute / incremental programmingX, Z / U, W addressesG90 / G91

On Fanuc controls the G code system is selected by a parameter. Check your machine's manual before you copy a code from any table.

CNC Syntax Editor highlights G codes in lathe and mill programs. To see the tool path of a program, open it in the free online G-code viewer; the Free Edition of the editor is on the download page.

G code list for lathes (system C)

CodeDescription
G00Positioning
G01Linear interpolation
G02Circular interpolation CW
G03Circular interpolation CCW
G04Dwell
G10Offset value setting
G70Inch data input
G71Metric data input
G22Stored stroke limit ON
G23Stored stroke limit OFF
G27Reference point return check
G28Return to reference point
G29Return from reference point
G30Return to 2nd reference point
G31Skip cutting
G33Thread cutting
G34Variable lead thread cutting
G36Automatic tool compensation X
G37Automatic tool compensation Z
G40Tool nose radius compensation cancel
G41Tool nose radius compensation left
G42Tool nose radius compensation right
G92Programming of absolute zero point (also: Maximum spindle speed setting)
G65User macro simple calling
G66User macro modal calling
G67User macro modal call cancellation
G68Mirror image for double turrets ON
G69Mirror image for double turrets OFF
G72Finishing cycle
G73Stock removal in turning
G74Stock removal in facing
G75Pattern repeating
G76Peck drilling in Z axis
G77Grooving in X axis
G78Thread cutting cycle
G20Cutting cycle A
G21Thread cutting cycle
G24Cutting cycle B
G96Constant surface speed control
G97Constant surface speed control cancel
G94Per minute feed
G95Per revolution feed
G90Absolute programming
G91Incremental programming

M codes | G codes | G and M codes for mills | ISO tape codes | EIA tape codes | Online G-code viewer

Product Buy Download Support Contacts Site map
Copyright © 1999 - 2026, AGG Software.
All rights reserved.. Terms of use | Privacy policy