Manual
Using ACL Variables 10-5
Table 29 - Single-Variable Download Sequences
ACL Commands: Comments:
BD 0; VS 20, 0; ... ED; Execute this in the morning to clear the counter in
variable 20.
BD 1; ... V+ 20, 1; ... ED; This sequence performs the process and adds 1 to the
counter.
BD 3; OU"Total = ", 1; OV 20; ED; Execute this at the end of the day to "print out" the total
count on an attached terminal or printer.
The ", 1;" on the OU command causes its carriage return/linefeed to be suppressed, so that
the output looks something like:
Total = 325
If the total count might exceed 32767, you may wish to divide the counter into two variables,
as follows:
Table 30 - Two-Variable Download Sequences
ACL Commands: Comments:
BD 0; VS 20, 0; VS 21, 0; ... ED;
BD 1; V+ 20, 1 V= 20, 1000;
Clear two variables on Monday.
XI 2, 1; ... ED; Add 1 to the first variable, then check if it is equal to
1000; if so, call Procedure 2 to "carry" into the other
variable. Then, do the process.
BD 2; V+ 21, 1; VS 0, 0; ED; Add 1 to the 1000's counter and set the 1's counter to
zero.
BD 3; OU"1000's Total = ", 1;
OV 21, 1; OU", 1's Total = ", 1;
OV 20; ED;
Print both counters on Friday.
Again, the ", 1" on both OU and OV suppresses the carriage return, linefeed sequence, so the
output looks something like:
1000's Total = 271, 1's Total = 758
which means that the procedure was performed a total of 271758 times.