GreatLight CNC Machining Factory logo
CNC Machining
Rapid Prototyping
Materials
Industries
News
About GL

Get Instant Quote

CNC Knowledge

Use of the Tools Radius Compensation in the Milling Center

The cutter center never follows the part outline. Use of the tools radius compensation in the milling center is what closes that gap. This page explains how the control builds the offset, when to use G41 or G42, and where the method breaks down.

G41 / G42 / G40Offset registers±0.005 mmClimb milling
Use of the tools radius compensation in the milling center on a CNC control
Mechanism

Use of the tools radius compensation: why the cutter center is offset

A milling cutter is a circle in plan view. When the control drives the tool along a programmed line, it moves the spindle axis, not the cutting edge. On a straight pass the error is invisible. On a corner, the edge that matters is the one touching the wall, and the center sits one radius away from it. Program the center and the part comes out small by one radius on every outside profile. Program the edge and the control has to know where the edge is.

That is the whole problem. The programmed path is the part geometry. The machine moves the tool center. The gap between the two equals the cutter radius, measured normal to the path at every point. On a Ø12 mm end mill the gap is 6 mm. On a 3 mm cutter it is 1.5 mm. Ignore it and a 50 mm square becomes 38 mm with a Ø12 tool.

Tool radius compensation closes the gap in the control, at run time. The programmer writes the part outline. The operator tells the control which tool is in the spindle and what its radius is. The control shifts every motion left or right of the path by that radius, then recomputes the corners where two shifted lines meet. The operator never edits the geometry.

This split is the reason the function exists. Geometry stays in the program. Tool size stays in the offset register. Change a cutter, or regrind one, and only the register changes. The program runs again unchanged, and the part still lands on size. For shops running the same family of parts on several machines, that separation saves real setup time.

Codes

G41, G42 and G40: left, right, and cancel

Three codes do all the work. G41 is compensation left. G42 is compensation right. G40 cancels it. Left and right are defined by the direction of travel, not by which side of the part you are cutting. Stand behind the tool, look along the feed direction, and G41 puts the offset to your left. G42 puts it to your right.

The practical rule engineers use: for climb milling an outside profile with the tool going counterclockwise around the part, the offset is on the left of travel, so it is G41. Reverse the direction and the same cut becomes G42. Get this backwards and the control offsets the tool into the part. The first move usually snaps the cutter, or gouges the wall by two radii.

G40 must be active before any move where you do not want the offset. Tool changes, rapid moves to a safe plane, and moves to the next feature all belong after a G40. Leaving compensation active across a positioning move is one of the most common crash causes on a vertical mill, because the control keeps applying the radius to the rapid.

The control also needs to know which register holds the radius. That is the D word on most controls, for example G41 D01. D01 points to offset register 1. The value inside the register is the radius, not the diameter, on nearly every Fanuc-style control. Enter 6.0 for a Ø12 mm cutter. Enter 12.0 and the part is undersize by 6 mm per side.

Entry and exit

Lead-in moves and the corner the control cannot cut

Compensation cannot switch on while the tool sits on the final profile. The control needs at least one move, longer than the radius, to slide the tool from the programmed path to the offset path. That move is the lead-in. A typical lead-in is a straight line or a quarter arc, 1.5 to 2 times the cutter radius long, at a shallow angle to the profile.

A short lead-in is a real failure mode. If the lead-in is shorter than the radius, the control has no room to reach the offset path and alarms out, or it reaches it late and leaves a mark on the wall. On a Ø12 mm cutter, keep the lead-in above 9 mm. On a Ø3 mm cutter, above 5 mm is usually enough.

Inside corners have a second limit. The largest radius the control can place in a sharp internal corner is the cutter radius. A Ø12 mm tool cannot leave a 3 mm inside corner radius, no matter what the offset register says. The tool physically cannot reach it. The drawing has to allow a corner radius at least equal to the cutter radius, or the feature needs a smaller tool. This is a geometry limit, not a control limit.

Outside corners are the reverse case. The control has to insert a corner arc where two offset lines meet, and the arc radius equals the cutter radius. On a sharp outside corner that arc sweeps the tool around the point. If the lead-out crosses the lead-in, the control may alarm or leave a witness mark. Give the exit move clear space, and keep the overlap off the finished wall.

Setup

Rough and finish with one program, and what the register holds

The strongest argument for compensation is roughing and finishing from one program. Write the finish geometry once. For roughing, set the register to the cutter radius plus the stock allowance, say 6.4 mm for a Ø12 mm cutter leaving 0.4 mm. For finishing, set the register back to 6.0 mm. One program, two passes, no geometry edits.

The register value is not always the nominal radius. A reground cutter is smaller, and the wear offset should track that. Measure the cutter, or cut a test feature and measure the result, then adjust the register by half the error per side. This is normal practice on any machine holding ±0.005 mm, especially in 6061-T6, 7075, 17-4PH and Ti-6Al-4V where cutter wear moves faster.

Radial runout matters too. A cutter with 0.02 mm runout cuts oversize on one flute and undersize on the others. Compensation cannot fix an out-of-round cut, only a size error. Check runout at the holder before blaming the offset. On finishing passes, keep runout under 0.01 mm for Ra 0.8–1.6 μm walls.

Keep a written rule for who edits the register. If the operator adjusts the radius to chase a size that drifted for thermal reasons, the next part may come out wrong when the machine cools. Size drift from heat belongs in the wear offset, with a note on the setup sheet, not in the radius field.

Limits

Where radius compensation stops being useful

Compensation is a 2D tool. It works in the plane selected by G17, G18 or G19. On a 3D contoured surface, the correct offset changes direction from block to block, and a single register value cannot describe it. Most CAM systems handle those paths by posting the compensated center path directly. That is not a shortcoming of the operator. It is the wrong tool for the job.

The same applies to simultaneous 5-axis motion. The tool axis tilts, the contact point moves around the cutter, and a fixed left or right offset has no consistent meaning. Five-axis toolpaths are posted as center paths with the tool vector included in every block. Use compensation on 2.5D features in a 5-axis program, then cancel it before the contoured moves begin.

Look-ahead is the other limit. The control must find the intersection of two offset lines before it can move. If the block after the lead-in is very short, or the geometry has a near-tangent corner, some older controls alarm with an interference error. Modern controls handle this better, but the safe habit is to keep the first compensated move long and simple.

None of this removes the need to check the register before the cycle starts. A wrong D word, a radius entered as a diameter, or a G41 left active from a previous tool will all produce a bad part on the first cut. The offset screen is worth ten seconds of attention on every setup.

Judgment

When to use compensation, and when to program the center path

Pick the method before you post the program.

SituationUse G41/G42Program center pathReason
One program, rough + finishYesNoRegister holds the stock allowance
Cutter size may change at the machineYesNoOnly the register is edited
Simple 2D profile, one passEitherYesCenter path is shorter to write
Inside corner tighter than cutter radiusNo fixNo fixGeometry limit, use a smaller tool
3D surfacing with a ball noseRarelyYesOffset varies along the path
5-axis simultaneous motionRarelyYesOffset plane changes every block
Thread millingSometimesYesOffset applies to the helix path
Control with limited look-aheadCarefulYesShort lead-ins may alarm

The rule we follow in the shop

Use compensation for 2.5D profiles, pockets and any feature where the cutter may change: one program covers roughing and finishing, and the register absorbs the difference. Post the center path for 3D surfacing and simultaneous 5-axis work, where a single radius value has no consistent meaning. Get that split right and most size problems disappear before the first part is cut.

FAQs

Questions engineers ask about radius compensation

Does the offset register hold the radius or the diameter?

On Fanuc-style controls and most of their clones, the register holds the radius. A Ø12 mm cutter goes in as 6.0. Some controllers, and a few older Siemens and Heidenhain setups, can be configured either way, so check the parameter before you trust the number.

If parts come out undersize by exactly one cutter diameter per side, the register is holding a diameter where a radius is expected. That error is easy to spot because the size error is large and repeats on every profile.

Why does the control alarm when compensation starts?

The most common cause is a lead-in move shorter than the cutter radius. The control cannot reach the offset path in the distance available, so it stops. Keep the first compensated move at 1.5 to 2 times the radius.

A second cause is a near-tangent corner where two offset lines almost coincide. The intersection point moves a long way for a small change in angle. Simplify the geometry at that corner, or program the center path there.

Can compensation fix an oversize part after the fact?

Yes, within limits. If an outside profile is 0.03 mm oversize, reducing the register by 0.015 mm brings it back on the next pass. That works when there is stock left to cut and the wall has not been finished to size.

It does not work if the feature is already at final size and the error comes from runout, deflection or thermal drift. Compensation changes where the tool goes, not how it cuts. Fix the cause, then set the register.

Is G41 always climb milling?

No. G41 and G42 describe the side of the path the offset sits on, not the milling direction. Climb or conventional depends on the spindle rotation and the feed direction relative to the workpiece.

In practice, most shops climb mill on finishing passes and use G41 for outside profiles cut counterclockwise. That is a convention, not a rule. Check the direction arrow on the setup sheet.

Should the operator edit the radius to hold size?

Only for cutter wear and regrinding. Those are real changes in the tool, and the register should follow them. Measure the cutter or cut a test feature and adjust by half the measured error per side.

Do not use the radius field to chase drift caused by heat, chips or fixture movement. That drift reverses when conditions change, and the register will be wrong on the next batch. Use the wear offset instead, and log why.

Does compensation work on a lathe?

Yes, but the logic is different. Turning uses tool nose radius compensation, usually G41 and G42 on the X and Z plane, and the register holds a nose radius plus a tip orientation number. The tip orientation tells the control which way the imaginary tool point is offset.

The same principle applies: geometry in the program, tool size in the register. The failure modes are also similar, with wrong tip orientation replacing wrong left-right selection as the common mistake.

Send us the drawing and we will check the geometry

Upload a STEP file and we return a quotation with free DFM analysis within 12 hours, including a note on any corner radius the cutter cannot reach.

12-hour quote100% inspectionNo minimum order quantityNDA on request

Follow

More machining notes from our shop floor

We publish setup notes, tooling trials and inspection data from the factory floor.

FacebookTikTokYouTubeLinkedInInstagramThreadsPinterest

Trusted by engineers and manufacturers worldwide

Tesla Ford Motor Company BYD Auto Denso Magna International Boeing Airbus Medtronic KUKA FANUC