G-code reference

G143 G-Code: 5-Axis Tool Length Compensation (Haas)

5-Axis Tool Length Compensation (Haas) — Haas tool length compensation that accounts for the tool tip position as the rotary axes tilt, for 5-axis programs posted with tool length included.

By cnccode · Updated
PropertyValue
CodeG143
Function5-Axis Tool Length Compensation (Haas)
Modal group08
TypeModal — stays active until replaced by another code of the same group
Used onMilling machines
SyntaxG143 H_

What does G143 do?

Haas tool length compensation that accounts for the tool tip position as the rotary axes tilt, for 5-axis programs posted with tool length included.

G143 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
G143 H_
AddressMeaning
HLength offset

G143 example program

Example
G143 H01
(5-axis toolpath)
G49

▶ Open this example in the G-code viewer

Tips and common mistakes

  • Newer Haas 5-axis work usually uses G234 TCPC.

Controller compatibility

G143 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 G143 modal?
Yes. G143 belongs to modal group 08 and stays active until another code of that group is programmed.
What does G143 mean in CNC?
G143 means 5-Axis Tool Length Compensation (Haas). Haas tool length compensation that accounts for the tool tip position as the rotary axes tilt, for 5-axis programs posted with tool length included.
What is the difference between G143 and G234?
G143 is 5-Axis Tool Length Compensation (Haas), while G234 is Tool Centre Point Control (Haas TCPC). See the G234 page for its syntax and examples.
Can I use G143 on a lathe?
Usually not with the same meaning: G143 is documented here for milling machines. Check your control manual for the equivalent.