CNC Tool Length and Radius Compensation Explained: G43, G44, G41, G42
Tool compensation is what makes CNC machining precise and repeatable.
It ensures that every cut, regardless of tool wear or diameter, follows the programmed path at the exact intended dimension.
This guide covers length compensation (G43, G44) and radius compensation (G41, G42) — how they work, when to use them, and how modern CNCs automate the process using probes and AI.
📌 1. What Is Tool Compensation?
Tool compensation corrects the difference between:
- The theoretical tool path (programmed in CAM)
- The actual physical tool (length, radius, wear)
| Type | Code | Purpose |
|---|---|---|
| Length | G43 / G44 | Adjusts Z-axis for tool length |
| Radius | G41 / G42 | Adjusts XY-path for cutter radius |
📌 2. Tool Length Compensation (Z-Axis)
🔹 G43 — Positive Tool Length Compensation
T01 M06
G43 H01 Z100.
Activates the length offset from H01, moving Z to the correct height.
🔹 G44 — Negative Tool Length Compensation (Rare)
T02 M06
G44 H02 Z100.
Applies the offset in the opposite direction — used in inverted or special configurations.
📌 3. H-Value Table Example (Fanuc/Haas)
| Tool | H Offset | Description |
|---|---|---|
| T01 | H01 | Endmill 50mm |
| T02 | H02 | Drill 75mm |
| T03 | H03 | Chamfer Tool 40mm |
H-values correspond to tool numbers — always match T and H.
📌 4. Cutter Radius Compensation (XY Plane)
🔹 G41 — Cutter Comp Left
🔹 G42 — Cutter Comp Right
G41 D01 G01 X100. Y0. F300
Offsets tool left of the path using radius D01.
G42 D02 G01 X100. Y0. F300
Offsets right of the path, typically for conventional milling.
📌 5. D-Value Table Example
| D Offset | Tool | Radius (mm) |
|---|---|---|
| D01 | Ø10 Endmill | 5.0 |
| D02 | Ø6 Endmill | 3.0 |
| D03 | Ø20 Face Mill | 10.0 |
📌 6. Safe Cutter Compensation Entry
G00 X0 Y-10
G01 G41 D01 X0 Y0 F200
Always start on a straight line before applying compensation.
⚠️ Never apply G41/G42 during rapid moves (G00).
📌 7. Canceling Compensation
G40
Cancels both left and right cutter compensation — always use before retracting.
📌 8. Combined Example (Fanuc / Haas)
%
O7001 (TOOL LENGTH + RADIUS COMP)
G90 G17 G40 G80 G54
T03 M06
G43 H03 Z100.
S2000 M03
G00 X0 Y0
G01 Z-10. F200
G41 D03 G01 X100. Y0.
G40 G00 Z100.
M30
%
Combines both H and D offsets for complete 3D accuracy.
📌 9. Siemens Example — Tool Offset Integration
TOOL CALL 3 Z S2000
L Z+100 FMAX
L X100 Y0 F300
Siemens links tool length and radius data automatically from the TOOL TABLE.
📌 10. Heidenhain Example — Tool Definition & Compensation
TOOL DEF 3 L+75 R+6.
TOOL CALL 3 Z S3000
L Z+100 FMAX
L X+50 RL
L+75= length,R+6= radius.RL(right/left) replaces G41/G42 logic.
📌 11. Automatic Tool Measurement with Probe
G65 P9832 Z-300. F200.
G43 H#4120
Measures tool length automatically and applies the correct offset.
📌 12. AI-Based Dynamic Tool Compensation
| Sensor Input | Compensation Logic |
|---|---|
| Spindle load | Detects wear increase and adjusts Z offset |
| Temperature | Adjusts tool length due to thermal growth |
| Vibration | Detects imbalance and compensates in feed direction |
| Acoustic emission | Detects micro-chatter for real-time correction |
Modern CNCs adjust compensation in milliseconds for consistent accuracy.
📌 13. Macro Example — Adaptive Length Update
#100 = [#100 + 0.02]
G10 L10 P1 R#100
Adds +0.02mm wear compensation to tool length offset H01 automatically.
📌 14. Tool Wear Compensation Table
| Parameter | Typical Range (mm) |
|---|---|
| Tool Length Wear | ±0.02 |
| Radius Wear | ±0.01 |
| Thermal Drift | ±0.03 |
These micro-adjustments are key to high-precision machining.
📌 15. 5-Axis Tool Compensation Example
G43.4 H01
G01 X100. Y50. Z-25. A30. C45. F500
G43.4 applies dynamic 5-axis tool length compensation, adjusting tool vector in real time.
📌 16. Troubleshooting Tool Compensation
| Problem | Cause | Solution |
|---|---|---|
| Wrong Z depth | Missing G43 or wrong H | Verify H = Tool Number |
| Wrong contour size | Wrong D offset | Check tool radius |
| Cutter jumps | Applied comp in G00 | Use G01 |
| Gouging corners | Wrong entry path | Add lead-in lines |
| Poor finish | No wear compensation | Enable adaptive update |
📌 17. Combining Length + Radius Compensation
G43 H01 Z100.
G41 D01 G01 X50. Y0. Z-10. F400
G40 G49
Full tool compensation for both Z and XY planes.
📌 18. Canceling All Offsets
G40 G49 G80
Safely clears all tool length, cutter radius, and cycle modes.
📌 19. AI-Powered Tool Management (2025–2030)
| Feature | Description |
|---|---|
| Self-learning wear curves | AI predicts compensation drift |
| Real-time geometry correction | Adjusts offsets per pass |
| Cloud-synced offset library | Shares tool data across machines |
| Smart probing routines | Runs measurement cycles autonomously |
AI transforms tool compensation from a static setting into a living calibration process.
📌 20. Best Practices
| Goal | Best Practice |
|---|---|
| Precision setup | Always probe tool before run |
| Safe path | Activate G41/G42 on linear lead-in |
| Automation | Use macros for adaptive wear correction |
| Multi-axis | Use G43.4 or G68.2 for vector compensation |
| Safety | Always cancel G40/G49 before M30 |
✅ Conclusion
Tool compensation is the foundation of precision machining.
By understanding how to correctly use G43, G44, G41, and G42, you can achieve exact dimensions regardless of tool wear, thermal effects, or multi-axis orientation.
The next generation of CNCs will use AI-driven compensation loops, ensuring that every cut is perfect — automatically.
Leave a comment