8-60
Functions
8.14 Indexed Variables in NC Commands
Two variable fields of the same type have been assigned, to
communicate indexes to variables, even within program loops. Eight
indexed variables are available. The function within the variable field is
assigned and enables a calculation of a variable address using the
formula:
calculated
variable
calculated
variable
L:
[ ] Contents
L:
[V50x] = Contents of V500 – V507
L:
[V51x] = Contents of V510 – V517
Fig. 8-35: Formula for Calculating Indexed Variables
The contents of variables V509 and V508 (or V519 and V518) are
multiplied and added to the contents of Variable 50x (or V51x). The
resulting value is the variable number that is then processed in the called
function.
Variable
Definition
500
# of Basic Variable 1
501
# of Basic Variable 2
502
# of Basic Variable 3
503
# of Basic Variable 4
504
# of Basic Variable 5
505
# of Basic Variable 6
506
# of Basic Variable 7
507
# of Basic Variable 8
508
Offset Factor 1
509
Variable Index 1
Fig. 8-36: Variable Block 1
Variable
Definition
510
# of Basic Variable 1
511
# of Basic Variable 2
512
# of Basic Variable 3
513
# of Basic Variable 4
514
# of Basic Variable 5
515
# of Basic Variable 6
516
# of Basic Variable 7
517
# of Basic Variable 8
518
Offset Factor 2
519
Variable Index 2
Fig. 8-37: Variable Block 2
ECODRIVE03-FL*-04VRS
[
] [
=
+
number
V
50
x
V
509
[
] [
=
+
number
V
51
x
V
519
DOK-ECODR3-FL*-04VRS**-FK01-EN-P
] [
]
*
V
508
] [
]
*
V
518