13. Program Support Functions
13.5 User Macro Specifications
332
Position information
Using variable numbers #5001 to #5104, it is possible to read the servo deviation amounts, tool
position compensation amount, skip coordinates, workpiece coordinates, machine coordinates
and end point coordinates in the block immediately before.
Axis No.
Position
information
1
2 3 4
…
n
Remarks
(reading
during
movement)
End point coordinate of
block immediately before
#5001 #5002 #5003 #5004
…
#5000+n
Yes
Machine coordinate
#5021 #5022 #5023 #5024
…
#5020+n
No
Workpiece coordinate
#5041 #5042 #5043 #5044
…
#5040+n
No
Skip coordinate
#5061 #5062 #5063 #5064
…
#5060+n
Yes
Tool position
compensation amount
#5081 #5082 #5083 #5084
…
#5080+n
No
Servo deviation amount
#5101 #5102 #5103 #5104
…
#5100+n
Yes
Start point coordinate of
block with a macro
interrupt
#5121 #5122 #5123 #5124
…
#5120+n
Yes
End point coordinate of
block with a macro
interrupt
#5141 #5142 #5143 #5144
…
#5140+n
Yes
(Note 1)
The number of axes which can be controlled differs according to the specifications.
(Note 2)
The last digit of the variable No. corresponds to the control axis No.