CNC Machinist Calculator Ultra

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

AddressWhat it does
ZMeasuring position
RDistance before Z where the slow measuring feed starts
DRange where the sensor must trigger
FMeasuring 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)

Example is in inch. Check offsets and clearances first.

Watch out for

Related codes

G43 · G53

G37 on other controls

The same number can mean something different on another control.

ControlMeaning
FanucAutomatic tool length measurement
Haas NGCAutomatic tool length measurement
Fagor 8055 8065Tangential 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

App Store Google Play