defaults — Program defaultsFeed & dynamics
Set sticky defaults (feed, feed mode, blend, mode, spindle) for the whole program.
defaults { feed <f> [per rev | inverse] · mode <m> · blend <t> · dynamics <d> · spindle … }Equivalents: Fanuc F, G93/G94/G95, G61/G64 · Siemens F, FPR, COMPON
| Parameter | Type | Default | |
|---|---|---|---|
feed | feed | — | cutting feed; suffix `per rev` (mm/rev) or `inverse` (1/min) |
mode | roughing|semifinish|finish|precision | — | machining-mode preset (blend + dynamics) |
blend | mm | — | path-blend tolerance (0 = exact stop) |
dynamics | soft|brisk | — | acceleration profile |
Sets program-wide **sticky settings** so you don't repeat them on every block. Feed modes are native: `feed 0.1 per rev` (mm/rev, resolved against the live spindle — turning / threading) and `feed 2 inverse` (inverse-time: each move completes in 1/value minutes — the 5-axis-CAM convention). The `mode` presets bundle the path-blend tolerance and acceleration profile that suit a stage: `roughing` (looser blend, brisk jerk), `semifinish`, `finish`, `precision` (exact-stop, soft jerk). `blend`/`dynamics` set those individually. Settings here are modal for the rest of the program; use `with { … }` to change them for just one block.
units mm
defaults { feed 500, mode finish }
spindle 12000 cwspindle 1000 cw
defaults { feed 0.1 per rev }
g1 z-10