Data Manipulation Instructions
Chapter 6
66
Figure 6.6
GreaterThan Comparison
||
02
()
01
120 010
| G |
100
030
| < |
YYY
031
Reference Value
When YYY>100, GET/LES comparison is true and 010/01 is energized.
Equal To – An equal-to comparison is made with the Get and Equ
instructions (Figure 6.7). The Get value is the changing variable and is
compared to the reference value of the Equ instruction for an equal-to
condition. When the Get value equals the Equ value, the comparison is true
and logic continuity is established.
Figure 6.7
EqualTo Comparison
||
03
()
02
120 010
| G |
YYY
030
| = |
100
035
Reference Value
When YYY=100, GET/EQU comparison is true and 010/02 is energized.
Less Than or Equal To – This comparison is made using the Get, Les
and Equ instructions. The Get value is the changing value. The Les and
Equ instructions are assigned a reference value (Figure 6.8). When the
Get value is either less than or equal to the value at the Les and Equ
instructions, the comparison is true and logic continuity is established.
NOTE: Only one Get instruction is required for a parallel comparison. The
Les and Equ instructions are programmed on parallel branches.
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com