Example program · Mill

Helical Boring a Ø20 Hole with a 10 mm End Mill — G-Code Example

Interpolates a Ø20 mm bore 15 mm deep with a 10 mm end mill using a helical ramp (1.5 mm per revolution), then a flat finishing circle at the bottom.

By cnccode · Updated

Interpolates a Ø20 mm bore 15 mm deep with a 10 mm end mill using a helical ramp (1.5 mm per revolution), then a flat finishing circle at the bottom.

ItemValue
MachineCNC mill / machining centre (Fanuc-style)
UnitsMetric (G21)
Lines26

Program

G-code
O1104 (HELICAL BORE D20 X 15)
G21 G17 G40 G80 G90
T2 M06 (10 MM END MILL)
G54 G00 X0 Y0
S6000 M03
G43 H02 Z5. M08
G00 Z1.
G01 X5. F400.
G03 X5. Y0 I-5. J0 Z-0.5 F900.
G03 X5. Y0 I-5. J0 Z-2.
G03 X5. Y0 I-5. J0 Z-3.5
G03 X5. Y0 I-5. J0 Z-5.
G03 X5. Y0 I-5. J0 Z-6.5
G03 X5. Y0 I-5. J0 Z-8.
G03 X5. Y0 I-5. J0 Z-9.5
G03 X5. Y0 I-5. J0 Z-11.
G03 X5. Y0 I-5. J0 Z-12.5
G03 X5. Y0 I-5. J0 Z-14.
G03 X5. Y0 I-5. J0 Z-15.
G03 X5. Y0 I-5. J0 (FLAT BOTTOM)
G01 X0 Y0
G00 Z25.
M09
G91 G28 Z0
G90
M30

▶ Simulate in the G-code viewer

How it works

  • Tool path radius = (20 − 10) / 2 = 5 mm.
  • One tool makes any bore larger than itself — fewer tools in the magazine.
  • For tight tolerances finish with a separate pass using cutter compensation or a boring head.

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 milling programs