
6.COMPENSATION FUNCTION PROGRAMMING B-63944EN-2/02
- 106 -
6.2 AUTOMATIC TOOL LENGTH MEASUREMENT (G37)
By issuing G37 the tool starts moving to the measurement position
and keeps on moving till the approach end signal from the
measurement device is output. Movement of the tool is stopped when
the tool nose reaches the measurement position.
Difference between coordinate value when tool reaches the
measurement position and coordinate value commanded by G37 is
added to the tool length compensation amount currently used.
Z
X
0
Rapid
traverse
Measurement
feedrate
(Start point)
Measurement position is commanded
with G37
B (Deceleration position)
C (Measurement position)
The tool stops when the approach end
signal goes on.
Compensation value = (Current compensation value) + [(Coordinates of the
point at which the tool is stopped) - (Coordinates of the programmed measure
ment position)]
Fig. 6.2 (a) Automatic tool length measurement
Format
G92 IP_ ; Sets the workpiece coordinate system.
(It can be set with G54 to G59. See
Chapter "Coordinate System" in User’s
Manual (Common to T/M series.))
Hxx ; Specifies an offset number for tool length
compensation.
G90 G37 IP_ ; Absolute programming
G37 is valid only in the block in which it is specified.
IP_ indicates the X-, Y-, Z-, or fourth axis.
Explanation
- Setting the workpiece coordinate system
Set the workpiece coordinate system so that a measurement can be
made after moving the tool to the measurement position. The
coordinate system must be the same as the workpiece coordinate
system for programming.