G43 Tool length compensation
Fanuc G-code · Mill
Adds the tool length offset from H to the Z position, so Z values in the program are measured from the tool tip. Used on every tool after the tool change.
Format
G43 Z H
Addresses
| Address | What it does |
|---|---|
Z | First Z position with the offset applied |
H | Tool length offset number |
How it works
Modal, group 08. Cancel with G49 or H0.
Example program
T2 M06 (3-8 END MILL)
G90 G54 G00 X0. Y0. S3500 M03 (POSITION)
G43 H02 Z1. M08 (LENGTH OFFSET ON AT Z1.)
Z.1 (CLEARANCE)
G90 G54 G00 X0. Y0. S3500 M03 (POSITION)
G43 H02 Z1. M08 (LENGTH OFFSET ON AT Z1.)
Z.1 (CLEARANCE)
Example is in inch. Check offsets and clearances first.
Watch out for
- Give G43 with a Z move well above the part. The first move with the new length is a rapid in many programs.
- Match H to the tool number to avoid running with another tool length.
- A wrong H can crash the tool straight into the part. Watch the first Z move with low rapid override.
Related codes
G43 on other controls
The same number can mean something different on another control.
| Control | Meaning |
|---|---|
| Haas NGC | Tool length compensation plus |
| Mazak (EIA) | Tool length offset, plus direction |
| Okuma OSP | 3D compensation cancel |
| Mitsubishi M70 M80 | Tool length comp plus |
| Brother Speedio | Tool length offset plus |
| Fagor 8055 8065 | Tool length compensation on |
| LinuxCNC Tormach | Tool length offset on |
| Mach3 Mach4 | Tool length offset |
| Centroid CNC12 Acorn | Tool length compensation plus |
| Hurco WinMax (NC) | Tool length offset plus |
| Fadal | Tool length compensation positive |
Every G-code for Fanuc in your pocket. The app has the full example programs, search by number or shop word, a line decoder and calculators for tapping, threading and drilling.
Open G43 in the app All Fanuc G-codes