comp — Cutter radius compensationCompensation

Offset the path by the tool radius — program the part edge, cut the right size.

comp left | right [radius <r>] { … motion … }

Equivalents: Fanuc G41/G42 · Siemens G41/G42 + CUT2D

ParameterTypeDefault
sideleft|rightwhich side of the path the tool stays on (looking along travel)
radiusmmactive toolexplicit offset radius; defaults to the loaded tool's radius

Program the **finished part contour**; the controller offsets the tool centre by the cutter radius so the cutting edge traces the part. `left`/`right` is the side the *tool* stays on, looking along the direction of travel — **`left` = climb** on an outside contour. Inserts the lead-in/out and rounds outside corners with transition arcs (via the shared `nc-comp` engine), so you never hand-offset geometry or re-post when you change cutter size. ``` programmed edge ───────────────► (direction of travel) comp left: tool centre rides ABOVE/left of the edge comp right: tool centre rides BELOW/right of the edge outside corner ┐ ← bridged with a radius-sized transition arc ```

finish a 40×30 boss, climb
units mm
tool 3
spindle 9000
defaults { feed 600 }
comp left radius 5 {   // Ø10 end mill -> 5 mm radius
  g1 x0 y0
  g1 x40
  g1 y30
  g1 x0
  g1 y0
}

See also: g1 · tool

← all commands