CNC Machinist Calculator Ultra

Home › G-codes › Fanuc › G37

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

AddressWhat it does
ZMeasuring 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)
…

The full 5-line example is in the app. Example is in inch. Check offsets and clearances first.

Watch out for

Related codes

G31 · G43

G37 on other controls

The same number can mean something different on another control.

ControlMeaning
Haas NGCAutomatic tool length measurement
Mazak (EIA)Automatic tool length measurement
Fagor 8055 8065Tangential 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

App Store Google Play