User guide

Chapter 19
Comparison Instructions
1910
True/False Status of the Instruction
If the Low Limit has a value equal to or less than the High Limit, the
instruction is true when the Test value is between the limits or is equal to
either limit. If the Test value is outside the limits, the instruction is false.
This is illustrated in the figure below.
Example, low limit less than high limit:
Low
Limit
High
Limit
Instruction is true
when Test value is
Instruction is false
when Test value is
5 8 5 thru 8 32,768 thru 4 and 9 thru 32,767
False True False
32,768
Low Limit
High Limit
+ 32,767
If the Low Limit has a value greater than the High Limit, the instruction is
false when the Test value is between the limits. If the Test value is equal to
either limit or outside the limits, the instruction is true. This is illustrated in
the figure below.
8532,768 thru 5 and 8 thru 32,767 6 thru 7
Example, low limit greater than high limit:
Low
Limit
High
Limit
Instruction is true
when Test value is
Instruction is false
when Test value is
True False True
32,768
High Limit
Low Limit
+ 32,767