184
DBKCMP
, DBKCMP
P
(3) The following program compares, when X20 is turned ON, the data at D10 to D12 with the data at D30 to D32, and
stores the operation result into the area starting from M100.
The following program transfers the character string "ALL ON" to D100 onward when all devices from M100 onward have
reached the 1 "ON" state.
[Ladder Mode]
[List Mode]
[Operation]
: Data to be compared or head number of the devices where the data to be compared are stored (BIN 32 bits)
: Head number of the devices where the comparison data are stored (BIN 32 bits)
: Head number of the devices where the comparison operation result will be stored (bits)
n
: Number of comparison data blocks (BIN 16 bits)
DBKCMPooo,
BIN 32-bit block data comparisons
DBKCMPoooP
6.1.7
DBKCMP
, DBKCMP
P
• QnU(D)(H)CPU, QnUDE(H)CPU: The serial number (first five
digits) is "10102" or later.
Setting
Data
Internal Devices
R, ZR
J \
U \G
Zn
Constants
K, H
Other
Bit
Word
Bit
Word
––
––
––
––
––
––
––
––
––
––
––
n
––
––
Step
Instruction
Device
b15
b0
b15
b0
4321
(
BIN
)
D31
5678
(
BIN
)
9999
(
BIN
)
D30
D32
ON
ON
ON
M101
M100
M102
ON
SM704
(
BIN
)
D11
(
BIN
)
(
BIN
)
D10
D12
1234
5678
9876
4C
H
(
L
)
b15
b8
41
H
(
A
)
b7
b0
D101
4C
H
(
L
)
D102
4F
H
(
O
)
20
H
(
)
D100
$MOV
4E
H
(
N
)
Basic
High
performance
Process
Redundant
Universal
LCPU
Ver.
DBKCMP
DBKCMP
n
DBKCMP
P
n
DBKCMP
D
S1
S2
D
S1
S2
P
Command
Command
/
/
/
/
/
indicates an instruction s
y
mbol of .
S1
S2
D
S1
S2
D