16-Bit Data Comparison - Mitsubishi MELSEC-A Series Programming Manual

Type acpu/qcpu-a (a mode)
Hide thumbs Also See for MELSEC-A Series:
Table of Contents

Advertisement

6. BASIC INSTRUCTIONS

6.1.1 16-bit data comparison

(=, <>, >, <=, <, >=)
Bit device
X
Y
M
(S1)
O
O
O
(S2)
O
O
O
LD
AND
OR
Functions
Instruction
Symbol in
Execution
Conditions
Available Device
L
S
B
F
T
C
O
O
O
O
O
O
O
O
O
O
O
O
(S1)
(S2)
(S1)
(S1)
(1) Handled as a NO contact and used for the comparison of 16bits.
(2) The comparison operation result is as shown below:
Condition
=
(S1) = (S2)
(S1) ≠ (S2)
<>
>
(S1) > (S2)
(S1) ≤ (S2)
<=
<
(S1) < (S2)
(S1) ≥ (S2)
>=
The execution conditions of LD , AND , and OR
Instruction
LD
AND
OR
Applicable
CPU
Word (16-bit) device
D
W
R
A0
A1
Z
O
O
O
O
O
O
O
O
O
O
O
O
(S2)
(S2)
Comparison
Instruction
Operation
Symbol in
Result
Continuity
status
Executed only when the preceding contact instruction is on.
6 − 4
All CPUs
Constant Pointer
Level
V
K
H
P
I
N
O
O
O
K1
K4
O
O
O
Indicates the instruction symbol.
Setting data
Compared data or head
(S1)
number of device which
(S2)
stores compared data
Condition
(S1) ≠ (S2)
=
<>
(S1) = (S2)
(S1) ≤ (S2)
>
<=
(S1) > (S2)
(S1) ≥ (S2)
<
>=
(S1) < (S2)
are as indicated below.
Execution Condition
Executed per scan.
Executed per scan.
MELSEC-A
M9012 (M9010, M9011)
to
O
O
=, <>,>
<=, <, >=
Comparison
Operation
Result
Non-Continuity
status

Advertisement

Table of Contents
loading

This manual is also suitable for:

Acpu-common-p-e13j741AcpuQcpu-a

Table of Contents