G Code of cnc Lathe machine (Common Version)

September 25, 2025

G00 Quick positioning

Format: G00 X(its value should be greater than the actual diameter of the workpiece) Z(1-2 mm farther than the end face of the workpiece)

G01 Linear interpolation

Format G01 X Z F(must be specified)

G02/G03 interpolation

Format: G02 /G03 End point X coordinate, Z(arc end point Z coordinate), R(arc radius), F(feed rate)

G04 suspended

Format: G04X(Decimal points can be added to values) P(decimal points cannot be added after values)

G90 cylindrical turning cycle

Format: G90X(End point x-coordinate)Z(end point Z-coordinate)F(feed rate)

G94 end face turning cycle

Format: G94X(End point x-coordinate)Z(end point Z-coordinate)F(feed rate)

 G92 thread turning cycle

Format: G92X(end point x-coordinate) Z(end point Z-coordinate)F(pitch)

 G71 outer circle rough turning cycle

Format: G71U(The depth of entry on one side each time)R(the amount of tool retraction in the X direction after each turn. When boring inner holes, it is important to note that it should not be too large)

 G71P(Start number of the finish turning program)Q(end number of the finish turning program)U(X-direction allowance left during finish machining)W(Z-direction allowance during finish machining)F(Feed rate during rough turning)

 G72 end face rough turning cycle

Format: G72W(Feed rate in the Z direction each time, the feed rate must not exceed the arc of the tool tip)R(Feed rate when turning in the Z direction each time)

 G72P(Start number of the finish turning program)Q(End number of the finish turning program)U(X-direction allowance left during finish machining)W(Z-direction allowance during finish machining)F(Feed rate during rough turning)

 G73 profiling rough machining cycle

Format: G73U(representing the allowance radius value of the blank)W(Allowance in the Z direction of the blank)R(Number of turns, calculate the X feed rate for each allowance by yourself)

 G73P(Start number of the finish turning program)Q(End number of the finish turning program)U(X-direction allowance left during finish machining)W(Z-direction allowance left during finish machining)F(Feed rate during rough turning)

 G70 finishing cycle

Format: G70P(Start number of the precision turning program end)Q(End number of the precision turning program)

 G74 End face grooving cycle (Here only drilling is discussed)

Format G74R(amount of tool retraction in the Z direction each time)

 G74X(always X0)Z(Z-direction coordinates of the end point)Q(depth of each Z-direction entry)F(feed rate)

 G75 outer circle grooving cycle

Format: G75R(Amount of tool retraction in the X direction each time

 G75X(End point X-coordinate)Z(end point Z-coordinate)P(Feed rate in the X direction each time)Q(Offset in the Z direction each time)F(feed rate)


Quick Inquiry