Guide · Programming
G41 and G42 Explained: Lead-In, Wear, Overcut Alarms and Good Habits
How cutter radius compensation works, how to start and end it, how to correct a size with wear and what causes the interference alarm.
On this page
With compensation you program the contour of the part and the control moves the tool aside by its radius. A worn or reground cutter then needs a new number, not a new program.
Left or right?
Look in the direction of travel. G41 puts the tool on the left, G42 on the right. With a normal right-hand cutter and M03, G41 is climb milling.
Start and end
G00 X-15. Y-15.
G01 Z-5. F200.
G41 D01 X0. Y-10. F600. (LEAD-IN, STRAIGHT)
Y40.
X60.
Y0.
X-10.
G40 X-15. Y-15. (LEAD-OUT)
G00 Z50.- The start move is a straight G00 or G01 and longer than the tool radius.
- Extend the first line of the contour backwards, so that the tool is on the path before it reaches the part.
- End outside the part and cancel with G40 in a straight move.
Correct a size
The outside width should be 60.00 and measures 60.06. Both walls carry half of the error. Enter −0.03 in the wear column of D01 and run the finishing pass again. Inside contours need the opposite sign.
Why the control refuses
- Alarm 041: the cutter would damage the contour. It does not fit, or too many blocks without movement follow each other.
- Alarm 034: start or end in an arc.
- Alarm 033: no common point of two moves.
Computer, control or wear?
In CAM you choose who calculates the radius. With wear the CAM output already contains the radius and D holds only the small correction, so D starts at zero. With control D holds the full radius. If you mix them the part is wrong by a whole cutter. Write the method on the set-up sheet.
Try it without a machine
The compensation simulator shows both paths, the finished size and the alarm for four contours.
More guides
- Canned Drilling Cycles G73 to G89: Which One, Which Values, How Much Time
- True Position for Machinists: From the Drawing to the Offset Correction
- Klipper vs Marlin: How They Really Differ and Which One to Choose
- Input Shaping and Pressure Advance Explained: The Physics Behind Fast, Clean Prints
- The Complete 3D Printer Calibration Guide: Every Step in the Right Order
- 3D Printer Start G-code Explained Line by Line (Marlin and Klipper)