Example program · Lathe
Lathe Stock Removal in Facing (G72) — G-Code Example
Roughs and finishes a short stepped flange from Ø80 bar with G72, which cuts in X and steps in Z — ideal for large diameter steps on short parts.
Roughs and finishes a short stepped flange from Ø80 bar with G72, which cuts in X and steps in Z — ideal for large diameter steps on short parts.
| Item | Value |
|---|---|
| Machine | CNC lathe (Fanuc G-code system A) |
| Units | Metric (G21) |
| Lines | 19 |
Program
O2104 (G72 FLANGE)
G21 G18 G40 G99
T0101
G50 S2000
G96 S200 M03
G00 X82. Z2. M08
G72 W1.5 R0.5
G72 P10 Q20 U0.3 W0.1 F0.25
N10 G00 Z-12.
G01 X80. F0.12
X40.
Z-6.
X24.
Z-2.
X20. Z0
N20 Z2.
G70 P10 Q20
G00 X100. Z100. M09
M30▶ Simulate in the G-code viewer
How it works
- The G72 profile is written from the chuck side toward the face, monotonic in Z.
- U and W are finishing allowances in X and Z.
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
- Lathe OD Grooving with G75
- 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)