Example program · Mill

Bolt Hole Circle with Polar Coordinates (G16) — G-Code Example

Spot-drills six holes on an 80 mm PCD using polar coordinates, so no trigonometry is needed.

By cnccode · Updated

Spot-drills six holes on an 80 mm PCD using polar coordinates, so no trigonometry is needed.

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

Program

G-code
O1004 (6 HOLES ON PCD 80)
G21 G17 G40 G49 G80 G90
T4 M06 (SPOT DRILL 90 DEG)
G54 G00 X0 Y0
S2500 M03
G43 H04 Z25. M08
G16 (POLAR ON: X = RADIUS, Y = ANGLE)
G98 G81 X40. Y0 Z-2. R2. F150.
Y60.
Y120.
Y180.
Y240.
Y300.
G80
G15 (POLAR OFF)
G00 Z25.
M09
G91 G28 Z0
G90
M30

▶ Simulate in the G-code viewer

How it works

  • The polar centre is the work zero; use G52 to move it.
  • If your control lacks G16, use the Bolt Circle calculator to get X/Y.

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