
PROGRAMMING
B–63444EN/01
14. CUSTOM MACRO
157
⋅ The tool offset value currently used for execution rather than the
immediately preceding tool offset value is held in variables #5081 to
#5082.
⋅ The tool position where the skip signal is turned on in a G31 (skip
function) block is held in variables #5061 to #5062. When the skip
signal is not turned on in a G31 block, the end point of the specified
block is held in these variables.
⋅ When read during movement is “disabled,” this means that expected
values cannot be read due to the buffering (preread) function.
Workpiece zero point offset values can be read and written.
Table 14.2 (k) System variables for workpiece zero point offset values
Variable
number
Function
#5201
#5202
First–axis external workpiece zero point offset value
Second–axis external workpiece zero point offset value
#5221
#5222
First–axis G54 workpiece zero point offset value
Second–axis G54 workpiece zero point offset value
#5241
#5242
First–axis G55 workpiece zero point offset value
Second–axis G55 workpiece zero point offset value
#5261
#5262
First–axis G56 workpiece zero point offset value
Second–axis G56 workpiece zero point offset value
#5281
#5282
First–axis G57 workpiece zero point offset value
Second–axis G57 workpiece zero point offset value
#5301
#5302
First–axis G58 workpiece zero point offset value
Second–axis G58 workpiece zero point offset value
#5321
#5322
First–axis G59 workpiece zero point offset value
Second–axis G59 workpiece zero point offset value
D Workpiece coordinate
system compensation
values (workpiece zero
point offset values)