Setting of radius length compensation for CNC machining tools - ST
  • Over
  • Blog
  • Contact

Setting of radius length compensation for CNC machining tools

CNC Tool Radius and Length Compensation: Setting It Up Right the First Time

Getting compensation wrong on a CNC machine does not show up as a warning. It shows up as a crashed tool, a scrapped part, or a dimension that is off by exactly the radius of your cutter. Tool radius compensation (G41/G42) and length compensation (G43/G44) are the two most fundamental offset functions in milling and turning. Every operator uses them daily, but most shops still chase compensation errors that trace back to how the values were entered in the first place.

This is not a theory piece. It is about what actually happens when you push the offset button, how to set values that do not drift, and the specific mistakes that turn a five-minute job into a thirty-minute fire drill.


Why Compensation Exists and What It Actually Does

Every cutter has a physical size. A 10mm end mill is not a line — it is a cylinder with a radius that removes material. If you program the center of the tool to follow the part profile, the edge of the cutter will cut exactly one radius away from where you intended. For external contours this means the part comes out undersized. For internal pockets it means oversize.

Tool radius compensation fixes this by letting you program the part geometry directly and telling the controller to shift the tool path by the cutter radius. G41 shifts the tool to the left of the programmed path. G42 shifts it to the right. The controller calculates the offset in real time as the tool moves along arcs, lines, and helical paths.

Length compensation works on a simpler principle. Every tool sticks out of the spindle a different amount. Instead of measuring and programming Z zero for each tool individually, you set a single Z reference on the machine and tell the controller how far each tool extends beyond that reference. G43 adds the offset. G44 subtracts it.

Both systems are modal. Turn them on and they stay on until you cancel them with G40 (radius) or G49 (length). Forgetting to cancel is the single most common source of compensation-related crashes.


Setting Tool Length Offsets: The Method That Actually Works

Using the Tool Setter or Probe

The fastest and most repeatable way to set length offsets is with a tool setter or a touch probe mounted in the spindle. The sequence is straightforward:

  1. Load the tool into the spindle.
  2. Bring the tool down until it triggers the setter or the probe detects contact.
  3. The controller records the Z position at the moment of contact.
  4. It calculates the offset by comparing that position to the machine’s Z zero reference.
  5. The value gets written to the offset table under the matching tool number.

This method removes human guesswork. You are not eyeballing a feeler gauge and hoping for the best. The machine measures the actual contact point, which means your Z values are accurate to within a few microns.

Manual Entry and Why It Causes Drift

Some shops still set length offsets manually with a paper shim or a height gauge. You touch the tool tip to a known surface, measure the distance to the spindle gauge line, and type the number into the offset page. It works. But every time you remove and reload a tool, the seating depth changes slightly. Spindle taper runout, collet grip variation, and thermal expansion all add up. After five or six tool changes, your Z values can drift by 0.05mm or more — enough to fail a tight tolerance.

If you must enter manually, do it on every tool change, not just the first time. Write the measured value down and cross-check it against the previous entry before running the part.

The H Offset and Wear Offset Trap

Most controllers separate the geometry offset (H) from the wear offset. The geometry value is set once and rarely changes. The wear offset is where you make fine adjustments without rewriting the entire offset table.

Here is where people get confused: when you adjust the wear offset, the controller adds it to the geometry offset. So if your geometry H is 150.000 and you add 0.020 to wear, the effective length is 150.020. If you later overwrite the geometry value thinking it includes the wear adjustment, you lose the wear correction and your Z zero shifts unexpectedly.

Keep geometry and wear separate. Use wear for daily trimming. Touch geometry only when you change tools or re-zero the machine.


Tool Radius Compensation: Getting G41 and G42 Right

Entering the Radius Value

The radius offset is the distance from the tool tip to the center of the cutter. For a 10mm end mill, the radius is 5.000mm. You enter this value into the offset table under the D (diameter) or R (radius) column depending on your controller. Some machines use diameter mode, so you would enter 10.000. Others use radius mode and expect 5.000. Know which mode your machine is in before you start typing.

If you enter the wrong value, every arc and contour will be off by the difference. A 0.01mm error in the radius value produces a 0.01mm error in the part dimension. On a tight internal pocket, that is a scrap part.

Wearing Off the Radius

Tools wear. The radius shrinks. A brand new 10mm end mill might measure 4.998mm on the radius. After a few hours of cutting steel, it could be 4.970mm. If you never update the offset, your internal pockets grow larger and your external profiles shrink with every part.

Use the wear column for radius compensation the same way you use it for length. Measure the actual cutter radius with a tool microscope or a radius gauge, compare it to the nominal value, and enter the difference into the wear offset. Do this every time you notice a dimensional trend, not just on a scheduled interval.

Lead-In and Lead-Out: Where Compensation Breaks

Compensation does not activate instantly. The controller needs a straight-line move of at least one cutter diameter to build the offset vector before it reaches an arc or angled line. If you start G41 directly on an arc, the tool will crash into the part because the offset was never established.

Always program a lead-in move — a straight line approaching the contour at an angle. A common pattern is a short linear move at 45 degrees, then transition into the contoured path. The same rule applies at the end of the cut. Use a lead-out straight line before you cancel G40. Skipping the lead-out is why you see those ugly witness marks on finished parts and why the tool sometimes digs into the surface on exit.


Common Mistakes That Wreck Your Parts

Compensation Direction on Climb vs Conventional Milling

G41 and G42 are defined relative to the direction of travel, not the spindle rotation. This means the same offset direction produces different physical results depending on whether you are climb milling or conventional milling.

On a contour going clockwise, G41 puts the tool on the outside of the path. On the same contour going counterclockwise, G41 puts the tool on the inside. If you copy a program from one job to another and the feed direction flips, your compensation direction flips with it. The part comes out wrong and you spend twenty minutes wondering why.

Always verify the feed direction before activating compensation. A quick visual check of the arrow on your tool path preview saves more time than any debug cycle.

Forgetting G40 Between Operations

A typical program might drill holes, then mill a pocket, then cut a profile. If you leave G41 active from the pocket operation and start the profile with an arc, the tool will offset in the wrong direction and gouge the part.

The fix is simple but easy to skip: always end each compensated block with G40. Then start the next block with a fresh G41 or G42 if needed. Some programmers put G40 at the beginning of every new operation as a safety net. This is not bad practice — it costs one line of code and prevents a crash.

Using the Wrong Offset Number

Controllers let you assign multiple offset values to the same tool number. You might have H01 for roughing and H02 for finishing, or D01 for a new cutter and D02 for a worn one. If you call the wrong offset number in the program, the machine runs with the wrong value and you do not find out until the part is done.

Double-check the T-call line. It should look like T06 M06 G43 H06 D06 — tool number, tool change, length offset, radius offset, all matching. A mismatch between the T number and the H or D number is a guaranteed error.


Turning Compensation: A Different Beast

On a lathe, tool nose radius compensation (G41/G42) works differently than on a mill. The tool tip is not a perfect point — it has a small radius, usually 0.4mm or 0.8mm. When you cut a taper or a ball, that nose radius changes the actual geometry. Without compensation, your taper angles will be off and your ball radii will not match the drawing.

You enter the nose radius value and the tool tip direction (T number 1 through 9) into the offset table. The controller then adjusts the path in real time. The setup is more involved than milling compensation because you have to tell the machine which way the nose points — up, down, left, right, or one of the diagonal directions.

Length compensation on a lathe follows the same G43/G44 logic as milling. The reference point is usually the face of the part or the chuck jaw. Set it once, use it for every tool, and adjust wear offsets as tools dull.


Building a Compensation Workflow That Does Not Fail

Start every new job by verifying offsets, not assuming they are correct. Load the first tool, trigger the length setter, confirm the H value on the screen, then do the same for radius. Run a single-block air cut and watch the tool path on the graphic. Look for the lead-in, confirm the compensation direction, and check that the arc entry is smooth.

If something looks wrong, stop before the tool touches metal. It takes ten seconds to check a preview and ten minutes to clean up a crash.

E-mail
Email: [email protected]
WhatsApp
WhatsApp QR-code
(0/8)