G37 Automatic tool length measurement
Fanuc G-code · Mill
Moves the tool toward a measuring position until a touch sensor signals, then the control updates the current tool length offset with the difference.
Verify on your machine. This entry could not be fully checked against the maker manual. Check your machine manual before you run it.
Format
G37 Z
Addresses
| Address | What it does |
|---|---|
Z | Measuring position, in the work coordinate system |
How it works
One shot, group 00.
Example program
T5 M06 (TOOL TO MEASURE)
G90 G54 G00 X-12. Y-6. (OVER TOOL SETTER)
G43 H05 Z1. (ACTIVE OFFSET H5)
G37 Z-2. (MEASURE AND UPDATE H5)
…
G90 G54 G00 X-12. Y-6. (OVER TOOL SETTER)
G43 H05 Z1. (ACTIVE OFFSET H5)
G37 Z-2. (MEASURE AND UPDATE H5)
…
The full 5-line example is in the app. Example is in inch. Check offsets and clearances first.
Watch out for
- This is an option that needs a sensor wired to the control. Many shops use a builder probe macro instead.
- The tool must be close to the sensor and the right H offset must already be active.
- A wrong starting offset can drive the tool into the sensor at rapid. Test slowly.
Related codes
G37 on other controls
The same number can mean something different on another control.
| Control | Meaning |
|---|---|
| Haas NGC | Automatic tool length measurement |
| Mazak (EIA) | Automatic tool length measurement |
| Fagor 8055 8065 | Tangential entry |
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 G37 in the app All Fanuc G-codes