Example program · Mill

Circular Pocket with Helical Entry — G-Code Example

Mills a 30 mm diameter, 6 mm deep pocket with a 10 mm end mill, ramping down helically 1 mm per revolution.

By cnccode · Updated

Mills a 30 mm diameter, 6 mm deep pocket with a 10 mm end mill, ramping down helically 1 mm per revolution.

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

Program

G-code
O1003 (CIRCULAR POCKET D30 X 6 DEEP)
G21 G17 G40 G49 G80 G90
T3 M06 (10 MM END MILL)
G54 G00 X5. Y0
S6500 M03
G43 H03 Z25. M08
Z1.
G01 Z0 F300.
G03 X5. Y0 I-5. J0 Z-1. F600.
G03 X5. Y0 I-5. J0 Z-2.
G03 X5. Y0 I-5. J0 Z-3.
G03 X5. Y0 I-5. J0 Z-4.
G03 X5. Y0 I-5. J0 Z-5.
G03 X5. Y0 I-5. J0 Z-6.
G03 X5. Y0 I-5. J0 (CLEAN BOTTOM)
G01 X10.
G03 X10. Y0 I-10. J0 F700.
G01 X0 Y0
G00 Z25.
M09
G91 G28 Z0
G90
M30

▶ Simulate in the G-code viewer

How it works

  • A helical ramp avoids plunging and works with non-centre-cutting tools.
  • The first circle (radius 5) roughs, the second (radius 10) brings the pocket to Ø30 with a 10 mm tool.
  • G03 inside a pocket gives climb milling.

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