
16.CUSTOM MACRO PROGRAMMING B-63944EN/02
- 400 -
- Distance to go #5181-#5200, #100801-#100850 (Attribute: R)
The distance to go value for each axis can be obtained by reading
system variables #5181 to #5200 or #100801 to #100850.
Variable
number
Variable name Position information
Read operation
during movement
#5181
#5182
:
#5200
[#_DIST[1]]
[#_DIST[2]]
:
[#_DIST[20]]
1st axis distance to go value
2nd axis distance to go value
:
20th axis distance to go value
#100801
#100802
:
#100850
[#_DIST[1]]
[#_DIST[2]]
:
[#_DIST[50]]
1st axis distance to go value
2nd axis distance to go value
:
50th axis distance to go 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 distance to go values for 20th or earlier axis
can be used with #5181 to #5200.
- Workpiece coordinate system shift value #2501, #2601 (Attribute: R/W)
T
The X-axis workpiece coordinate system shift value can be obtained
by system variable #2501 while Z-axis workpiece coordinate system
shift value by system variable #2601. The X-axis or Z-axis
workpiece coordinate system shift value can be changed by assigning
values to the system variables. (X-axis: X-axis of basic three axes,
Z-axis: Z-axis of basic three axes, Y-axis: Y-axis of basic three axes)
Variable number Variable name Description
#2501 [#_WZ_SFTX] X-axis workpiece shift value
#2601 [#_WZ_SHTZ] Z-axis workpiece shift value