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.
Rough and finish bores a Ø40 × 30 bore with a 30° entry chamfer from a Ø20 pre-drilled hole.
| Item | Value |
|---|---|
| Machine | CNC lathe (Fanuc G-code system A) |
| Units | Metric (G21) |
| Lines | 17 |
Program
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
- 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 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)