Programmer (HHP) User guide
Chapter 9
Using Comparison Instructions
9–6
Use the LEQ instruction to test whether one value (source A) is less than or
equal to another (source B). If the value at source A is less than or equal to
the value of source B, the instruction is logically true. If the value at source
A is greater than the value of source B, 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:
LEQ
LD LEQ 59 appears first on a rung or block
LEQ
AND LEQ 60
is placed in series with any previous input
instruction in the current rung or block
LEQ
OR LEQ 61
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 LEQ instruction. Use the
same procedure to enter the other LEQ instructions, only substitute the
function code with one from the table above.
P
0 0 0 L E Q S R C A
N 1 1 0
P
0 0 0 L E Q S R C B
1 0 0
24.00
False
23.60
True
6.60LD LEQ
7.00AND LEQ
24.00 7.00
OR LEQ
LEQ
LESS THAN OR EQUAL
Source A N7:11
0
Source B 100
Execution Times (µ
sec) when:
Ladder representation:
L
ess
Than
or
E
q
ual
(
LE
Q)
9
5
FUN
ENT
To enter the function code, press: