Publication 1762-RM001C-EN-P
Compare Instructions 9-3
EQU - Equal
NEQ - Not Equal
Instruction Type: input
The EQU instruction is used to test whether one value is equal to a
second value. The NEQ instruction is used to test whether one value is
not equal to a second value.
EQU
Equal
Source A N7:0
0<
Source B N7:1
0<
EQU
NEQ
Not Equal
Source A N7:0
0<
Source B N7:1
0<
NEQ
Table 9.2 Execution Time for the EQU and NEQ Instructions
Controller Instruction Data Size When Rung Is:
True False
MicroLogix 1200 EQU word 1.3
µ
s1.1
µ
s
long word 2.8
µ
s1.9
µ
s
NEQ word 1.3
µ
s1.1
µ
s
long word 2.5
µ
s2.7
µ
s
MicroLogix 1500 EQU word 1.2
µ
s1.1
µ
s
long word 2.6
µ
s1.9
µ
s
NEQ word 1.2
µ
s1.1
µ
s
long word 2.3
µ
s2.5
µ
s
Table 9.3 EQU and NEQ Instruction Operation
Instruction Relationship of Source Values Resulting Rung State
EQU A = B true
A
≠
Bfalse
NEQ A = B false
A
≠
Btrue