Not equal (neq), Entering the instruction – Rockwell Automation 1761-HHP-B30 MicroLogix 1000 with Hand-Held Programmer (HHP) User Manual
Page 155

Chapter 9
Using Comparison Instructions
9–4
P 0 0 0
E Q U
S R C A
N 1 1
0
P 0 0 0
E Q U
S R C B
1 0 0
Use the NEQ instruction to test whether two values are not equal. If source
A and source B are not equal, the instruction is logically true. If the two
values are equal, the instruction is logically false.
Source A must be a word address. Source B can be either a constant or word
address. Negative integers are stored in two’s complement form.
Entering the Instruction
HHP Display
Mnemonic
Function
Code
Use This Instruction When the Input:
NEQ
LD NEQ
53
appears first on a rung or block
NEQ
AND NEQ
54
is placed in series with any previous input
instruction in the current rung or block
NEQ
OR NEQ
55
is placed in parallel with any previous in-
put instruction in the current rung or block
You enter the instruction from within the program monitor functional area.
The example below shows how to enter the LD NEQ instruction. Use the
same procedure to enter the other NEQ instructions, only substitute the
function code with one from the table above.
P 0 0 0
N E Q
S R C A
N 1 1
0
P 0 0 0
N E Q
S R C B
1 0 0
ANB
0
5
To enter the function code, press:
ENT
FUN
ENT
21.92
False
21.52
True
6.60
LD NEQ
7.00
AND NEQ
21.92
7.00
OR NEQ
Execution Times (
µ
sec) when:
NEQ
NOT EQUAL
Source A
N7:11
0
Source B
100
Ladder representation:
Not Equal (NEQ)
5
FUN
ENT
To enter the function code, press:
3
U