g1 — Linear feed moveMotion
Cut in a straight line at the programmed feed.
g1 [x<..>] [y<..>] [z<..>] [a<..>] [c<..>] [f<feed>] [o=(..)] [fillet=<r>] [chamfer=<c>]Equivalents: Fanuc G01 · Siemens G1
| Parameter | Type | Default | |
|---|---|---|---|
x/y/z | mm | — | linear target |
a/b/c | deg | — | rotary target |
f | feed | modal | feed (per-min unless a feed mode is active) |
o | vector | — | explicit tool-axis orientation (5-axis) |
fillet | mm | — | round the corner into the next move by radius r |
chamfer | mm | — | bevel the corner into the next move by c |
The workhorse cutting move. On a 5-axis machine the tool axis is carried modally or set per-move with `o=(x,y,z)` (or relative `lead`/`tilt`), and the RTCP kinematics keep the tip on the programmed point as the rotaries swing. `fillet=`/`chamfer=` blend the corner into the following straight move — a geometric contour computer, no manual arc maths.
units mm
defaults { feed 400 }
g0 x0 y0 z-2
g1 x40 fillet=5
g1 y30 fillet=5
g1 x0 fillet=5
g1 y0 fillet=5