G-code reference
G43.1 G-Code: Dynamic Tool Length Offset (GRBL / LinuxCNC)
Dynamic Tool Length Offset (GRBL / LinuxCNC) — Sets the tool length offset directly in the program on GRBL and LinuxCNC instead of using a tool table. Typically written by a probing routine after a manual…
| Property | Value |
|---|---|
| Code | G43.1 |
| Function | Dynamic Tool Length Offset (GRBL / LinuxCNC) |
| Modal group | 08 |
| Type | Modal — stays active until replaced by another code of the same group |
| Used on | Milling machines |
| Syntax | G43.1 Z_ |
What does G43.1 do?
Sets the tool length offset directly in the program on GRBL and LinuxCNC instead of using a tool table. Typically written by a probing routine after a manual tool change.
G43.1 is modal: once programmed it remains in effect for the following blocks until another code from modal group 08 replaces it or the control is reset.
Syntax and parameters
G43.1 Z_| Address | Meaning |
|---|---|
Z | Offset value |
G43.1 example program
G43.1 Z-12.345
(cut)
G49▶ Open this example in the G-code viewer
Tips and common mistakes
- Cancel with G49 before measuring again.
Controller compatibility
G43.1 follows the ISO/Fanuc dialect used by Fanuc, Haas, Brother, Doosan, Hurco (ISO mode), Mazak (EIA/ISO mode), Okuma (G-code mode) and Siemens in ISO dialect mode. Parameters, option packages and builder-specific behaviour can differ, so confirm the details in your machine's programming manual before running a new program.