G-CODEEIA/ISO · one-shot
G37

Automatic tool length measurement

Machine-specific. This G-code reference is specific to the Mazak INTEGREX e-670H / e-670H-S with the MAZATROL SmoothX control (EIA/ISO programming manual H747PB0030E). G-code availability depends on fitted options, and groups and behaviour differ between Mazak models and control generations — verify against the manual for your own machine before programming with any code.
What it does

When the tool for which command data has been assigned moves to a programmed measurement position, the NC system will measure and calculate any differential data between the coordinates at that time and those of the programmed measurement position. Data thus obtained will become offset data for that tool. Also, if offsetting has already been performed for the tool, the current offset data will be further offset, provided that after movement of that tool under an offset status to the required measurement position, the measurements and calculations of any differential coordinates show some data to be further offset. At this time, further offsetting will occur for the tool offset data if only one type of offset data exists, or for the tool wear offset data if two types of offset data exist (tool length offsets and tool wear offsets). Machining with rotation of the rotary table (C-axis) requires in principle the axis of rotation of the workpiece to be completely aligned with the axis of rotation of the table. Workpiece Workpiece before machining after machining […]

G37 is one-shot (group 00) — it is valid only in the block where it is entered.

Programming format
G37 Z_ (X_, Y_) R_ D_ F_
Address words
  • X, Y, Z: Address of the measurement axis and the coordinate of the measurement position
  • R: Distance from the starting point of movement at a measurement feed rate, to the
  • measurement position
  • D: The area where the tool is to stop moving
  • F: Measurement feed rate
  • If R, D, or F is omitted, respective parameter values will become valid.
  • 3. Description of parameters
  • Parameter Description
  • F42 R-code command. Deceleration area
  • F43 D-code command. Measurement area
  • F44 F-code command. Measurement feed rate f
  • F72 Conditions for skipping based on G37 (EIA/ISO)
  •  See the separate Parameter List/Alarm List/M-code List for further details.
Source

Mazak PROGRAMMING MANUAL for EIA/ISO PROGRAM, manual H747PB0030E, section 24 AUTOMATIC TOOL LENGTH MEASUREMENT: G37, p. 3-11, 24-1, 24-2, 24-3, 24-4, 24-5, 24-6, 25-1. Reference and explanation only — not a reproduction of the manual.

Not sure how to use it? Ask the Mazatrol assistant →