Programmer (HHP) User guide

Chapter 9
Using Comparison Instructions
9–4
0 0 0 E Q U S R C A
N 1 1 0
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.
0 0 0 N E Q S R C A
N 1 1 0
0 0 0 N E Q S R C B
1 0 0
ANB
05
To enter the function code, press:
ENTFUN ENT
21.92
False
21.52
True
6.60LD NEQ
7.00AND NEQ
21.92 7.00OR NEQ
Execution Times (µ
sec) when:
NEQ
NOT EQUAL
Source A N7:11
0
Source B 100
Ladder representation:
N
ot
E
q
ual
(N
E
Q)
5
FUN ENT
To enter the function code, press:
3
U