Manufacturing · CNC

G-code Drilling Cycle Generator

Pick a canned cycle, tune your peck schedule and hole pattern, then copy Fanuc, Haas, or GRBL G-code — with a live cross-section that follows every plunge.

Retract fully each peck to clear chips.

Cut

mm

Below stock top

mm/min

Peck schedule

canned G-code
mm
#DepthProgressCut
14
+4
28
+4
312
+4
416
+4
520
+4
5 plunges
sec

Optional

1000.nccanned18 lines
1%
2O1000 (DRILLING JOB)
3G90 G94 G17 G21 G54 G40 G49 G80
4(PECK DRILL D6MM DEPTH 20MM)
5T1 M6
6(6MM DRILL)
7S1500 M3
8M8
9G43 H1 Z25.
10G99 G83 X0. Y0. Z-20. R2. Q4. F150
11X25. Y0.
12X50. Y0.
13G80
14G0 Z25.
15M9
16M5
17M30
18%

Program

Peck

G83

31sest.

Holes

3

Lines

18

Plunges

5

Format

Canned

20 deep · 60 feed travel

Peck (G83) — 5 plunges across 3 holes, emitted as canned cycle blocks.

Cross-section
Play the cycle or hover a plunge row
↑ safe ZR plane48121620
Hover a peck row or depth line to inspect it
About drilling cycles

Canned cycles, peck tables, and when the generator expands to long-hand G-code.

On Fanuc and Haas controls the generator emits compact canned cycles (G81, G82, G83, G73, G85/86/89 and rigid-tap G84). As soon as you customise the peck table, choose a diminishing schedule, mix hole heights or target GRBL, the program expands into explicit G0/G1 moves so every plunge is honoured exactly.

Start from an even peck increment, switch to a diminishing schedule for deep holes, or hit “Expand & customise” to edit every plunge: its depth, retract distance, and dwell. Add a deeper final plunge to break through cleanly at the bottom of the material.

The R plane is a small clearance above the stock where rapid switches to feed. The safe plane sits clear of clamps; choose G98 to return there between holes, or G99 to stay at the R plane for speed on flat parts.

Enter hole coordinates by hand, generate line, grid or bolt-circle patterns, or import a DXF and pick the circles you want to drill. Each hole can carry its own top-of-stock Z for stepped 3-axis setups.

G81 · Drill / spot

Rapid to R plane, feed to Z, optional dwell, retract.

G82 · Counterbore

Same as G81 with dwell at the bottom for a flat floor.

G83 · Peck drill

Full retract between pecks to break chips on deep holes.

G73 · Chip-break

Short retract each peck — faster than full G83 on softer alloys.

G84 · Rigid tap

Spindle-synchronized feed in and out; verify your post supports it.

Generated G-code is a starting point. Verify work offsets, tool lengths, speeds, feeds and retract heights, and dry-run above the part before cutting. Rigid tapping on GRBL requires a spindle-sync build.