Example program · Mill

GRBL Router: Rectangle Cut-Out in Depth Passes — G-Code Example

Cuts an 80 × 50 mm rectangle out of 6 mm plywood with a 3 mm two-flute bit on a GRBL router, in three 2 mm passes, tool centre on the line.

By cnccode · Updated

Cuts an 80 × 50 mm rectangle out of 6 mm plywood with a 3 mm two-flute bit on a GRBL router, in three 2 mm passes, tool centre on the line.

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

Program

G-code
(GRBL - 80 X 50 RECTANGLE, 3 MM BIT, 6 MM PLY)
G21 G90 G17
G54
M3 S18000
G0 Z5
G0 X0 Y0
G1 Z-2 F300
G1 X80 F1200
Y50
X0
Y0
G1 Z-4 F300
G1 X80 F1200
Y50
X0
Y0
G1 Z-6.2 F300
G1 X80 F1200
Y50
X0
Y0
G0 Z10
M5
G0 X0 Y0
M30

▶ Simulate in the G-code viewer

How it works

  • GRBL has no canned cycles or subprograms, so each layer is written out.
  • The last pass goes 0.2 mm below the material to cut cleanly through — use a spoilboard.
  • For a part to the exact size, offset the path by the bit radius in CAM (GRBL has no G41/G42).

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