Basic Instructions
3.26.2 Comparison Operation Instructions :
16-bit data comparison ... =, <>, >, <=, <, >=
Bit devices
X
Y
S1
S2
Functions
(1) Handled as an N/O contact and performs 16-bit comparison operation.
(2) The comparison operation results are as indicated below.
Instruction
symbol in
=
<>
>
<=
<
>=
Execution Conditions
The execution conditions of LD
Instruction
Executed every scan.
LD
Executed only when the preceding contact instruction is on.
AND
Executed every scan.
OR
142
Usable Devices
Word (16-bit) devices
M
T
C
Comparison
Condition
Operation
Result
S1
S2
=
S1
≠
S2
S2
S1
>
Energize
S1
≤
S2
S1
S2
<
S2
S1
≥
, AND
Execution Condition
Constants
Level
D
K
H
Instruction symbol in
=, <>, >, <=, <, >=
S1
S2
Instruction
symbol in
=
<>
>
<=
<
>=
and OR
Digit
Designation
(M9010,
N
M9011)
K1 to K4
Compared data or head
numbers of devices that
store compared data
Comparison
Condition
Operation
Result
S1
≠
S2
S1
S2
=
S2
S1
≤
Not energize
S1
S2
>
S1
≥
S2
S2
S1
<
are as indicated below.
Error
Flag