G43 applies a tool length offset so Z moves reference the part surface instead of the spindle face. Each tool measures a different length, and its offset lives in a numbered register called with an H word.
Format
How it works
- Store each tool length offset in the control, then call G43 with the matching H number.
- Activate it on the first Z move after a tool change.
- G49 cancels tool length compensation.
Example
G43 H01 Z1.0 (apply tool 1 length, rapid to Z1.0)
FAQ
What happens if I forget to cancel G43 with G49? The tool length offset stays active, which can apply an unintended Z offset to the next tool or operation. Most programs cancel with G49 before a tool change or at the end of the program to avoid this.
What’s the difference between G43 and G44? G43 applies a positive tool length offset, the more common convention, while G44, rarely used on modern controls, applies it in the opposite direction. Nearly all current programming standardizes on G43.
Related: G28 and Setup & Workholding.
Why the Offset Lives in the Control, Not the Program
Tool length offsets are measured once (on a tool-setter or by touching off the part) and stored in the control’s offset table, not written into the G-code itself. That separation is what lets the same program run correctly on different machines, or after a tool is re-ground and gets slightly shorter, without touching a single line of code — only the number in the H register’s table entry needs to change.
G43 vs. G43.4 (Dynamic Tool Length Compensation)
Standard G43 assumes the tool points straight along the machine’s Z axis. On a 5-axis machine with a tilted head, that assumption breaks down — G43.4 (dynamic/RTCP tool length compensation) instead applies the offset along the tool’s actual current orientation, keeping the tool tip point correct even as the head swings through different angles. It is a different, more capable mode, not just an extension of G43.
A Wrong H Number Is a Common Crash Cause
Calling G43 with the wrong H number applies another tool’s length offset to the current tool — if that offset is shorter than the tool actually is, the machine can plunge the tool straight into the part or fixture before anyone notices the mismatch. Matching the H number to the tool number by convention (rather than reusing registers) is a simple habit that removes this entire category of mistake.
