Home › G-codes › Haas NGC › G37
G37 Automatic tool length measurement
Haas NGC G-code · Mill
Measures the tool length on a tool setter and writes the H offset. Needs the optional 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 H Z F
Addresses
| Address | What it does |
|---|---|
H | Tool length offset number to write |
Z | Z position target for the measurement move |
F | Feed rate |
How it works
Non-modal, group 00.
Example program
T4 M06 (TOOL TO MEASURE)
G49 (LENGTH COMP OFF)
G37 H04 Z-10. F20. (MEASURE INTO H04)
G49 (LENGTH COMP OFF)
G37 H04 Z-10. F20. (MEASURE INTO H04)
Example is in inch. Check offsets and clearances first.
Watch out for
- Tool length compensation must be off during G37.
- Requires the tool setter option. WIPS macros are the usual method on NGC.
Related codes
G37 on other controls
The same number can mean something different on another control.
| Control | Meaning |
|---|---|
| Fanuc | Automatic tool length measurement |
| Mazak (EIA) | Automatic tool length measurement |
| Fagor 8055 8065 | Tangential entry |
Every G-code for Haas NGC 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 Haas NGC G-codes