Download Type ACPU/QCPU-A (A Mode)(Common Instructions

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