drill — Drilling cycleMachining cycles
Drill holes at points — simple, peck, or chip-break, with dwell.
drill at (x,y)… depth <d> [peck <q>] [chipbreak <q> back <b>] [dwell <t>] [retract <r>]Equivalents: Fanuc G81/G82/G83/G73 · Siemens CYCLE81–83
| Parameter | Type | Default | |
|---|---|---|---|
at | mm | — | one or more hole positions (x,y) |
depth | mm | — | final hole depth below the surface |
peck | mm | — | full-retract peck increment (deep-hole G83) |
chipbreak | mm | — | chip-break peck increment with a small back-off |
back | mm | — | chip-break retract distance |
dwell | s | — | dwell at the bottom (spot/counterbore) |
retract | mm | clearance | retract plane |
A native, conversational drilling cycle (engine: `nc-cycles`). Drill many holes from one statement; choose plain, **peck** (full retract to clear chips on deep holes — `G83`), or **chip-break** (a short back-off without full retract — `G73`); add a bottom **dwell** for spotting / flat-bottom counterbores (`G82`). Each hole expands to ordinary rapid-in / plunge / peck / retract motion the planner runs like any other path, so it sims and pre-flights correctly. ``` plain (G81) peck (G83) chip-break (G73) │ R ── │ R ── ▲ full │ R ── │ │ ▼ q │ retract │ ▼ q ↑ back ← short back-off, │ │ ▼ q │ │ ▼ q ↑ b chips snap, no full ▼ depth ▼ depth ▼ depth retract ```
units mm
tool 1 = drill(dia=6)
spindle 4000
defaults { feed 250 }
g0 x0 y0 z2
drill at (0,0) (20,0) (40,0) depth 20 peck 4