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…

By cnccode · Updated
PropertyValue
CodeG43.1
FunctionDynamic Tool Length Offset (GRBL / LinuxCNC)
Modal group08
TypeModal — stays active until replaced by another code of the same group
Used onMilling machines
SyntaxG43.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

Format
G43.1 Z_
AddressMeaning
ZOffset value

G43.1 example program

Example
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.

Frequently asked questions

Is G43.1 modal?
Yes. G43.1 belongs to modal group 08 and stays active until another code of that group is programmed.
What does G43.1 mean in CNC?
G43.1 means 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 tool change.
What is the difference between G43.1 and G43?
G43.1 is Dynamic Tool Length Offset (GRBL / LinuxCNC), while G43 is Tool Length Compensation (+). See the G43 page for its syntax and examples.
Can I use G43.1 on a lathe?
Usually not with the same meaning: G43.1 is documented here for milling machines. Check your control manual for the equivalent.