Example program · Lathe
Lathe Taper Turning Program — G-Code Example
Turns a taper from Ø20 to Ø30 over 40 mm (included angle 14.25°) in roughing passes and a finish pass.
Turns a taper from Ø20 to Ø30 over 40 mm (included angle 14.25°) in roughing passes and a finish pass.
| Item | Value |
|---|---|
| Machine | CNC lathe (Fanuc G-code system A) |
| Units | Metric (G21) |
| Lines | 15 |
Program
O2008 (TAPER D20-D30 X 40)
G21 G18 G40 G99
T0101
G50 S2500
G96 S200 M03
G00 X34. Z2. M08
G71 U1.5 R0.5
G71 P10 Q20 U0.4 W0.05 F0.25
N10 G00 X20.
G01 Z0 F0.1
X30. Z-40.
N20 X34.
G70 P10 Q20
G00 X100. Z100. M09
M30▶ Simulate in the G-code viewer
How it works
- The taper is a single G01 move with both X and Z.
- Use tool nose radius compensation (G42) for an exact taper diameter.
- The taper calculator gives angles and ratios for any taper.
Codes used in this program
- G71 — Stock Removal in Turning (Roughing Cycle)
- G70 — Finishing Cycle (Lathe)
- G42 — Cutter Radius Compensation Right
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 Threading with G92 (M12 × 1.75)
- Lathe OD Turning Box Cycle (G90)
- Lathe Facing Box Cycle (G94)
- Lathe Stock Removal in Facing (G72)