Manual
Detailed Descriptions of ACL Commands 3-77
Example: after doing the previous example, send BD 0, 3; MR 0, 1000; XD 2, 36; ED; .
Then, using the Arrow buttons, move the carriage to some location in the middle of the
platen, and press the SET ORIGIN button. Then press FAST and, while holding it, press
PAUSE. This invokes Download Sequence 0, which executes 3 times and then quits. Each
time it executes it performs a circular pattern of 36 moves, each pattern with a radius 1000
Calibrated Units larger than the previous one.
XI <id>, <value> [, <which> [, <else id>]] Execute If
This command invokes a Download Sequence in the same way as the XD ("Execute
Download Sequence") command, except that XI only invokes the Sequence if a certain
condition currently exists (or does not exist) on the Digital Inputs or in an ACL variable.
(The discussion below assumes that the Digital Inputs are being tested. For information
about testing ACL variables, please see the VT, V<, V=, and V> commands, as well as
Chapter 10.)
<id> is the identifying number (0 through 255) of the Sequence to be invoked if the
condition is met. This is like the <id> parameter of the XD command.
<value> and <which> establish the condition to be tested for. They are identical in
meaning to the <value> and <which> parameters of the WN ("Wait For Digital Inputs")
command. That is, <value> specifies the values to compare against the Digital Inputs, and
<which> specifies which Digital Inputs to check and which to ignore.
<which> is optional. If omitted it defaults to 255, meaning that all 8 Digital Inputs are
checked.
<else id> is also optional, but cannot be specified unless <which> is also specified. <else
id> is the identifying number (0 through 255) of a Download Sequence which is to be
executed if the condition is not met. In other words, either <id> or <else id> is used, but
not both. If <else id> is omitted and the condition is not met, no Download Sequence is
invoked; i.e., the XI command has no effect.
Unlike the XD command, the XI command does not allow a repetition count to be specified.
The Download Sequence can only be executed once, unless its BD had a repeat count.
For information about debouncing, signal sense (High True vs. Low True), and the Digital
Inputs in general, see Chapter 8 Using the Digital Outputs and Inputs.
Example: the command XI 22, 4, 4; invokes Download Sequence 22 if and only if Digital
Input 2 is presently True. If it isn't, the command has no effect. (The value 4 is equivalent
to binary 00000100, which has only bit 2 set.) All other Inputs besides Input 2 are ignored.
Example: the command XI 13, 0, 255, 15; invokes Download Sequence 13 if all 8 Digital
Inputs are currently False. But if any Digital Input is True, Download Sequence 15 is
invoked instead. (The 255 corresponds to binary 11111111, which has all eight bits set.)