Corner radius smaller than the cutter: a G-code checker alarm
A G-code checker shows which corner trips a cutter comp alarm on an inside corner before the control does. The alarm comes up when the corner radius in the program is smaller than the radius of the end mill: with G41 or G42 on, the tool simply cannot fit into the corner.


Why it alarms
With comp on, the control drives the tool centre one radius inside the programmed line. In an inside arc of R0.2 the centre would have to run on a circle of R0.2 − 0.25, a negative radius. No control can do that, so Haas and Fanuc both stop with an alarm. The short straight moves next to such a corner often trip a second message: a move shorter than the tool radius.
The fix
Make the corner radius larger than the tool radius, or use a smaller tool:
(T1 1/2 FLAT END MILL ...) (wrong: R0.25 tool in R0.2 corners)
(T1 3/8 FLAT END MILL ...) (right: R0.1875 tool fits R0.2 corners)
A good rule is a corner radius at least 10 to 20 % larger than the tool radius, so the tool does not wrap the full corner at once. The pocket after the fix:
%
O01083 (CUTTER COMP CHECK - HAAS MILL)
(STOCK 4.0 X 3.0 X 1.0 - X0 Y0 TOP LEFT FRONT CORNER)
(T1 3/8 FLAT END MILL - FLUTE 0.75 - STICK OUT 1.25)
G20 G17 G40 G49 G80 G90
T1 M06
G54 G00 X2. Y1.5 S3000 M03
G43 H01 Z1. M08
Z0.1
G01 Z-0.2 F10.
G41 D01 X2.5 Y1.0 F20.
X3.0
G03 X3.2 Y1.2 R0.2
G01 Y1.8
G03 X3.0 Y2.0 R0.2
G01 X1.0
G03 X0.8 Y1.8 R0.2
G01 Y1.2
G03 X1.0 Y1.0 R0.2
G01 X2.5
G40 G01 X2. Y1.5
G00 Z1. M09
M05
G28 G91 Z0.
M30
%

How the G-code checker finds it
NC Proof applies G41 / G42 with the D value of each tool (the tool’s own size unless you type another D in Stock & tools) and checks every compensated arc and move. Corners the tool cannot fit, start moves that are too short and comp on the wrong side are errors on their line. More on comp: Cutter compensation explained.
Inside corner FAQ
Why does cutter comp alarm on a small inside radius?
With comp on, the tool centre runs one radius inside the programmed arc. If the arc radius is smaller than the tool radius, that path does not exist, so the control alarms.
How big should the corner radius be?
Larger than the tool radius; 10 to 20 % larger keeps the tool from wrapping the whole corner at once.
Can I check the D offset value too?
Yes. In NC Proof Mill each tool has a D offset field in Stock & tools; the checker uses that value for G41 / G42.
See every error the app checks on Errors & warnings. Paste your own program into NC Proof Turn or NC Proof Mill during the 4-day free trial (no card needed).