
B-63944EN/02 PROGRAMMING 16.CUSTOM MACRO
- 397 -
- Tool length compensation value #5081-#5100, #100201-#100250 (Attribute: R)
M
Tool length compensation in the block currently being executed can
be obtained for each axis by reading system variables #5081 to #5100
or #100201 to #100250.
Variable
number
Variable
name
Position information
Read operation
during
movement
#5081
#5082
:
#5100
[#_TOFS[1]]
[#_TOFS[2]]
:
[#_TOFS[20]]
1st axis tool length compensation value
2nd axis tool length compensation value
:
20th axis tool length compensation value
#100201
#100202
:
#100250
[#_TOFS[1]]
[#_TOFS[2]]
:
[#_TOFS[50]]
1st axis tool length compensation value
2nd axis tool length compensation value
:
50th axis tool length compensation value
Disabled
NOTE
1 When variables exceeding the number of control
axes are specified, the alarm (PS0115) “VARIABLE
NO. OUT OF RANGE” occurs.
2 The tool length compensation for 20th or earlier
axis can be used with #5081 to #5100.