Learn · 6 min

Cutter compensation explained

With cutter compensation you program the part’s outline and the control shifts the tool by its D radius: G41 to the left of the path, G42 to the right.

The worked example’s toolpath, from above (X, Y): feed moves solid, rapid moves dashed, from the start point.rapidfeedstart pointXYprogrammed pathcutter centre
G41: climb milling clockwise round the outside of a 1" square, from above. Drawn to the example’s own coordinates; the cutter radius drawn schematically.

Program the part, not the tool

Without compensation you program where the tool’s centre goes, so every path depends on the tool size. With it, you program the part’s own outline and the control shifts the tool sideways by the radius stored in an offset (D). A resharpened tool, or a different size, needs only a new offset.

G41 puts the tool to the left of the path and G42 to the right, judged looking the way the tool travels, not from where you stand. G40 turns it off.

Which side, and climb or conventional

Going clockwise round the outside of a part (seen from above), the part is on your right, so the tool sits on the left: G41. Going counterclockwise round the inside of a pocket, the middle is on your left and the tool stays inside: G41 again. With the spindle in M03 and a right-hand tool, G41 is climb milling and G42 conventional.

Full radius or wear only

Two ways to use the offset. Program the part outline and store the whole radius in D; or program the tool-centre path (as CAM often does) and put only the wear in D, so comp trims the last few thousandths. The control does the same thing either way: it offsets by whatever D holds.

Getting in and out

Turn comp on during a straight move off the part, the lead-in, at least as long as the tool radius: LinuxCNC asks for at least the radius, Mach4 for longer than the offset, and Mach4 calls comp switched on in an arc an error. Turn it off the same way, on a straight lead-out.

Inside, a pocket narrower than the tool, or a step shorter than the radius, makes the offset paths cross: the control alarms or the tool gouges. Inside corners are left with the tool’s radius, and outside corners stay sharp while the tool rolls round them.

Try it on a calculator

  • Cutter compensation (G41/G42) — G41 or G42 for a profile or pocket, climb or conventional, a drawing of the tool-centre path, the lead-in rules and a program block.
  • G-code list and checker — Paste a program: missing feeds, spindle off, bad arcs, modal conflicts, plus a code reference.
Check yourself: 5 questions

Check yourself

  1. 1. Climb milling clockwise round the outside of a part: G41 or G42?

  2. 2. Counterclockwise round the inside of a pocket: which side?

  3. 3. With a 1/2" end mill, what is the shortest lead-in LinuxCNC accepts?

  4. 4. Where should G41 go?

  5. 5. A rectangular pocket cut with a 1/2" end mill with comp: what are its corners?

0 of 5 answered