Example program · Mill

Haas G12 / G13 Circular Pocket in One Line — G-Code Example

Mills a Ø40 mm pocket 6 mm deep in two 3 mm layers with a 10 mm end mill using the Haas G12 circular pocket cycle.

By cnccode · Updated

Mills a Ø40 mm pocket 6 mm deep in two 3 mm layers with a 10 mm end mill using the Haas G12 circular pocket cycle.

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

Program

G-code
O1101 (HAAS G13 POCKET D40 X 6)
G21 G17 G40 G80 G90
T2 M06 (10 MM END MILL, D02 = 5.0)
G54 G00 X50. Y30.
S6000 M03
G43 H02 Z5. M08
G01 Z0 F200.
G13 I5. K20. Q4. L2 D02 Z-3. F500.
G00 Z25.
M09
G91 G28 Z0
G90
M30

▶ Simulate in the G-code viewer

How it works

  • K is the finished pocket radius (20 mm = Ø40).
  • Z-3. with L2 cuts two incremental 3 mm layers.
  • G13 (counter-clockwise) gives climb milling with a right-hand cutter.

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