Home › G-codes › Okuma OSP › G56
G56 Tool length offset Z axis
Okuma OSP G-code · Mill
Applies the tool length offset on Z using the H number. This is the Okuma version of Fanuc G43 H.
Format
G56 Z H
Addresses
| Address | What it does |
|---|---|
Z | Z position after the offset |
H | Tool length offset number |
How it works
Modal, tool length offset group. Cancel with G53.
Example program
O1000 (OKUMA MILL SAMPLE)
N1 G15 H1 (WORK COORDINATE SYSTEM 1)
N2 T3 M06 (.375 DRILL)
N3 G00 G90 X1. Y1. S2000 M03 (FIRST HOLE)
…
N1 G15 H1 (WORK COORDINATE SYSTEM 1)
N2 T3 M06 (.375 DRILL)
N3 G00 G90 X1. Y1. S2000 M03 (FIRST HOLE)
…
The full 5-line example is in the app. Example is in inch. Check offsets and clearances first.
Watch out for
- Put G56 Z H on the first Z move after every tool change.
- Wrong H number is the classic crash. Most shops make H match the tool number.
Related codes
G56 on other controls
The same number can mean something different on another control.
| Control | Meaning |
|---|---|
| Fanuc | Work coordinate system 3 |
| Haas NGC | Work offset 3 select |
| LinuxCNC Tormach | Work coordinate system 3 |
| Mach3 Mach4 | Work offset 3 |
| Centroid CNC12 Acorn | Work coordinate system 3 |
| Hurco WinMax (NC) | Work coordinate system 3 |
| Fadal | Fixture offset 3, same as E3 |
Every G-code for Okuma OSP 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 G56 in the app All Okuma OSP G-codes