Home › G-codes › LinuxCNC Tormach › G43
G43 Tool length offset on
LinuxCNC Tormach G-code · Mill and lathe
Applies the tool table length offset. Without H it uses the tool loaded by the last M6.
Format
G43 [H]
Addresses
| Address | What it does |
|---|---|
H | Tool number whose offset to use, default is the loaded tool |
How it works
Modal, tool length group. Cancel with G49.
Example program
G20 G17 G40 G49 G54 G80 G90 G94 (INCH, SAFE START)
T3 M6 (LOAD TOOL 3)
G43 H3 (APPLY TOOL 3 LENGTH)
S2500 M3
…
T3 M6 (LOAD TOOL 3)
G43 H3 (APPLY TOOL 3 LENGTH)
S2500 M3
…
The full 5-line example is in the app. Example is in inch. Check offsets and clearances first.
Watch out for
- M6 does not apply the length. Always follow M6 with G43.
- H is a tool number in LinuxCNC, not a separate offset register.
- Tormach PathPilot programs use the same T M6 G43 H pattern.
Related codes
G43 on other controls
The same number can mean something different on another control.
| Control | Meaning |
|---|---|
| Fanuc | Tool length compensation |
| 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 |
| 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 LinuxCNC Tormach 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 LinuxCNC Tormach G-codes