Home › G-codes › Mazak (EIA) › G37
G37 Automatic tool length measurement
Mazak (EIA) G-code · Mill
Moves the tool toward a tool setter in the measuring axis and stores the measured length. Used on machines with a touch type tool setter.
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 R D F
Addresses
| Address | What it does |
|---|---|
Z | Measuring position |
R | Distance before Z where the slow measuring feed starts |
D | Range where the sensor must trigger |
F | Measuring feed rate |
How it works
Non-modal.
Example program
T01 M06 (TOOL 1)
G90 G53 G00 X-10. Y-5. (OVER TOOL SETTER, MACHINE POSITION)
G37 Z-14. R.5 D.2 F4. (MEASURE LENGTH)
G91 G28 Z0. (HOME Z)
G90 G53 G00 X-10. Y-5. (OVER TOOL SETTER, MACHINE POSITION)
G37 Z-14. R.5 D.2 F4. (MEASURE LENGTH)
G91 G28 Z0. (HOME Z)
Example is in inch. Check offsets and clearances first.
Watch out for
- Many Mazak shops measure tools with the Mazatrol tool measuring screen or a probe macro instead. Prove G37 at low override.
- Address meaning varies. Check the manual for your control.
Related codes
G37 on other controls
The same number can mean something different on another control.
| Control | Meaning |
|---|---|
| Fanuc | Automatic tool length measurement |
| Haas NGC | Automatic tool length measurement |
| Fagor 8055 8065 | Tangential entry |
Every G-code for Mazak (EIA) 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 Mazak G-codes