Manual
10-8 Using ACL Variables
Indexing and Parameters
Suppose that you have a Download Sequence which performs some action. In the middle of
that action, it needs to move to a specified X,Y location, and then complete the action. You
wish to have the operator teach 4 different locations, with the Automove saving the locations
for future use. Then, the Download Sequence performs the action in each of these 4
locations.
In this example, we use an "index variable" -- a variable whose value indicates where to
store the next location. It starts at 100, so that the X,Y locations will be stored in variables
100 and 101, 102 and 103, 104 and 105, 106 and 107.
Table 33 - Indexing and Parameters
ACL Commands: Comments:
BD 0; VS 5, 100; XD 10, 4; VS 5,
100; XD 11, 4; ED;
Initialize the index (variable 5) to 100; call 10 four times to
teach the locations, set the index back to 100; call 11 four
times.
BD 10; OU"Please teach a point.";
VC @5; OT; V+ 5, 2; ED;
Prompt the operator to teach a point. The "VC captures the
taught location in this variable and the next one." @5
indicates that variable 5 shows which variable that gets the
X value. The OT waits until the operator presses the Teach
button, then "outputs" the X and Y values, which, in this
case, are "captured" into two variables. Then, add 2 to the
index for next time.
BD 11; VS 1, @5; V+ 5, 1; VS 2,
@5; V+ 5, 1; XD 20; ED
Put an X value into variable 1. Put the following Y value into
variable 2. Leave variable 5 pointing at the next X value.
Call 20 to do the processing.
BD 20; ... MA @1, @2; ... ED; Perform processing. Move to the location given by variables
1 and 2 to perform additional processing. (Variables 1 and 2
are "parameters" to Sequence 20.)