bg

G code. Standard G codes for lathes with various numerical controls (CNC)

Since version 2.0 our CNC Syntax Editor software supports syntax highlighting for all G codes from the table below. The trial or FREE version of our software you can download in the Download area. We are planning to add tooltips with comments for each G code or M code in the program interface in the next release. You can ask our support team for details about our software and is features.

Standard G code chart for lathes

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 caling
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

M codes | G codes | G and M codes for MC | ISO tape codes | EIA tape codes

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