
13. Program Support Functions
13.5 User Macro Specifications
337
Number of workpiece machining times
The n
umber of workpiece machining times
can be read using variables #3901 and #3902.
By substituting a value in these variables, the number of workpiece machining times can be
changed.
Type
Variable No.
Data setting range
Number of workpiece
machining times
#3901
Maximum workpiece
value
#3902
0 to 999999
(Note)
Always substitute a positive value for the number of workpiece machining times.
Coordinate rotation parameter
The following variables can be read by the system variables of the variable command.
Note that writing is not possible onto these variables.
Variable No.
Description
#30060
Control axis No. on the coordinate rotation plane (horizontal
axis)
#30061
Control axis No. on the coordinate rotation plane (vertical
axis)
#30062
Coordinate rotation center (horizontal axis)
#30063
Coordinate rotation center (vertical axis)
#30064
Coordinate rotation angle
#30065
SIN data for the coordinate rotation angle [SIN(Coordinate
rotation angle)]
#30066
COS data for the coordinate rotation angle [COS(Coordinate
rotation angle)]
#30067
Coordinate rotation vector (horizontal axis)
#30068
Coordinate rotation vector (vertical axis)
Reverse run information
Variable
number
Usage Description
Range
#31100
Number of available
blocks for reverse run
+1 added number of the blocks that retained the
reverse run information while the “Reverse run
control mode” signal was ON
0 to 201
#31101
Counter of available
blocks for reverse run
Number of available blocks for reverse run
(value of #31100) when the “Reverse run” signal
turned ON to start.
Turns “0” when the forward run has been
executed for all the blocks.
Shows “0” in the normal operation.
0 to 201