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
Below stock top
Peck schedule
canned G-codeOptional
1%2O1000 (DRILLING JOB)3G90 G94 G17 G21 G54 G40 G49 G804(PECK DRILL D6MM DEPTH 20MM)5T1 M66(6MM DRILL)7S1500 M38M89G43 H1 Z25.10G99 G83 X0. Y0. Z-20. R2. Q4. F15011X25. Y0.12X50. Y0.13G8014G0 Z25.15M916M517M3018%
Program
Peck
G83
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.
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.