Manual
3-70 Detailed Descriptions of ACL Commands
A VS without the <value> parameter is primarily useful in downloaded move sequences.
The numeric value would be specified, by a computer or some other device, at the time the
move sequence is executed.
For more information about ACL variables, please see Chapter 10.
VT <varid> Variable Test
The VT command modifies the behavior of the next ON, XI, XU, or XW command, so that
instead of testing the Digital Inputs, it tests bits 0 through 7 of the integer portion of the
variable specified by <varid>. For example, suppose variable 6 contains the value 3, which
is binary 11. The following sequence:
VT 6; XI 13, 2, 2;
tests bit 1 of variable 6; since bit 1 is set, the XI executes Download Sequence 13.
For program clarity, the VT should be immediately followed by the ON, XI, XU, or XW. In
any case, if the VT is in a Download Sequence, the ON, XI, XU, or XW must be in the same
Download Sequence. The ON, XI, XU, or XW must not be in a Download Sequence called
by the one containing the VT, and must not be in a Download Sequence which called the one
containing the VT.
The ON command behaves slightly differently than the others -- it tests all 16 bits of the
integer portion of the variable. For example, if variable 22 contains 123.456 then the
sequence:
VT 22; ON;
outputs the value 123. This feature can be used to separate the integer and fractional
portions of a variable's value. For example, assuming variable 22 still contains 123.456,
then the sequence:
VT 22; VC 5; ON; VS 6, @22; V- 6, @5;
puts 123 into variable 5. Then, it puts variable 22's contents (i.e. 123.456) into variable 6.
Then it subtracts 123 from variable 6, leaving 0.456.
Note that VT does not affect the WN ("Wait For Digital Inputs") command.