Example program · Lathe

Lathe OD Grooving with G75 — G-Code Example

Cuts a 6 mm wide groove to Ø30 on a Ø40 shaft with a 3 mm grooving insert, pecking in X and stepping in Z.

By cnccode · Updated

Cuts a 6 mm wide groove to Ø30 on a Ø40 shaft with a 3 mm grooving insert, pecking in X and stepping in Z.

ItemValue
MachineCNC lathe (Fanuc G-code system A)
UnitsMetric (G21)
Lines9

Program

G-code
O2004 (GROOVE 6 WIDE TO D30)
G21 G18 G40 G99
T0404 (3 MM GROOVING INSERT, RIGHT EDGE REF)
G97 S700 M03
G00 X42. Z-20. M08
G75 R0.5
G75 X30. Z-23. P2000 Q2500 F0.06
G00 X100. Z100. M09
M30

▶ Simulate in the G-code viewer

How it works

  • With the tool referenced on its right (tailstock-side) edge, stepping from Z-20 to Z-23 with a 3 mm insert gives a 6 mm groove from Z-20 to Z-26.
  • P2000 = 2 mm X peck, Q2500 = 2.5 mm Z step (less than the insert width).

Codes used in this program

Always check feeds, speeds, offsets and clearances for your own machine and tooling, and prove new programs with single block and reduced rapid.

More lathe programs