Example program · Lathe

Lathe Internal Boring (G71 for ID) — G-Code Example

Rough and finish bores a Ø40 × 30 bore with a 30° entry chamfer from a Ø20 pre-drilled hole.

By cnccode · Updated

Rough and finish bores a Ø40 × 30 bore with a 30° entry chamfer from a Ø20 pre-drilled hole.

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

Program

G-code
O2006 (ID BORE D40 X 30)
G21 G18 G40 G99
T0606 (BORING BAR D16)
G50 S2000
G96 S150 M03
G00 X18. Z2. M08
G71 U1. R0.3
G71 P10 Q20 U-0.3 W0.05 F0.15
N10 G00 X44.
G01 Z0 F0.08
X40. Z-2.
Z-30.
N20 X18.
G70 P10 Q20
G00 Z50.
X100. Z100. M09
M30

▶ Simulate in the G-code viewer

How it works

  • For ID roughing the X finish allowance U is negative.
  • The bar minimum bore must exceed the bar diameter plus chip room (here Ø20 hole, Ø16 bar).

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