Example program · Mill

Chamfering an Outside Edge with a Chamfer Mill — G-Code Example

Puts a 1 mm × 45° chamfer around an 80 × 50 mm block using a 90° chamfer mill with a 2 mm tip.

By cnccode · Updated

Puts a 1 mm × 45° chamfer around an 80 × 50 mm block using a 90° chamfer mill with a 2 mm tip.

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

Program

G-code
O1013 (1 MM CHAMFER 80 X 50)
G21 G17 G40 G49 G80 G90
T12 M06 (90 DEG CHAMFER MILL, TIP D2)
G54 G00 X-10. Y-10.
S5000 M03
G43 H12 Z25. M08
Z-2. (TIP 1 MM BELOW EDGE + 1 MM CHAMFER)
G01 X-2. Y-2. F600.
Y52.
X82.
Y-2.
X-2.
G00 Z25.
M09
G91 G28 Z0
G90
M30

▶ Simulate in the G-code viewer

How it works

  • At Z-2 the cone diameter at the top edge is 2 + 2 × 2 = 6 mm, so the path sits 2 mm outside the edge to cut a 1 mm chamfer.
  • Use the chamfer calculator to get Z for any angle and size.

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