
B-63944EN-1/02 PROGRAMMING 5.COMPENSATION FUNCTION
- 237 -
Example
800
100
380
50
300
Programmed zero point
Z-axis measurement position
X-axis
measurement
position
Tool number T01
Offset value Offset value
(Before measurement) (After measurement)
X 100.0 98.0
Z04.0
G50 X760.0 Z1100.0 ; Programming of absolute zero point
(Coordinate system setting)
S01 M03 T0101 ; Specifies tool T1, offset number 1, and
spindle revolution
G36 X200.0 ; Moves to the measurement position
If the tool has reached the measurement
position at X198.0 ; since the correct
measurement position is 200 mm, the offset
value is altered by 198.0-200.0=-2.0mm.
G00 X204.0 ; Refracts a little along the X axis.
G37 Z800.0 ; Moves to the Z-axis measurement position.
If the tool has reached the measurement
position at X804.0, the offset value is altered
by 804.0-800.0=4.0mm.
T0101 ; Further offsets by the difference.
The new offset value becomes valid when the
T code is specified again.