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.

By cnccode · Updated

Turns a taper from Ø20 to Ø30 over 40 mm (included angle 14.25°) in roughing passes and a finish pass.

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

Program

G-code
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

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