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.
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.
| Item | Value |
|---|---|
| Machine | CNC lathe (Fanuc G-code system A) |
| Units | Metric (G21) |
| Lines | 9 |
Program
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
- Lathe OD Roughing and Finishing (G71 / G70)
- Lathe Facing Program with CSS
- Lathe Threading M20 × 2.5 with G76
- Peck Drilling on a Lathe (G74)
- Lathe Internal Boring (G71 for ID)
- Lathe Parting Off a Part
- Lathe Taper Turning Program
- Lathe Threading with G92 (M12 × 1.75)
- Lathe OD Turning Box Cycle (G90)
- Lathe Facing Box Cycle (G94)
- Lathe Stock Removal in Facing (G72)