Справочник Пользователя для Mitsubishi Electronics MELSEC -Q/L

Скачать
Страница из 1086
6  BASIC INSTRUCTIONS
6.1  Comparison Operation Instructions
203
6
BIN 32-bit block data comparisons
DBKCMP(P)
Processing details
 • This instruction compares BIN 32-bit data stored in n-point devices starting from the device specified by (S1) with BIN 32-bit 
data stored in n-point devices starting from the device specified by a constant and (S2) and then stores the result into the 
nth device specified by (D) and up.
 • The comparison operation is conducted in 32-bit units.
 • The constant in the device specified by (S1) can be between -2147483648 and 2147483647 (BIN 32-bit data).
 • Specify (D) out of the range of n-point devices starting from the device specified by (S1) and (S2).
• QnU(D)(H)CPU, QnUDE(H)CPU: the serial number (first five digits) is "10102" or later
• Q00UJCPU, Q00UCPU, Q01UCPU, QnUDVCPU: Supported
(S1):  Data to be compared or head number of the devices where the data to be compared are stored (BIN 32 bits)
(S2):  Head number of the devices where the comparison data are stored (BIN 32 bits)
(D):   Head number of the devices where the comparison operation result will be stored (bits)
n:  
Number of comparison data blocks (BIN 16 bits)
Setting 
data
Internal device
R, ZR
J\
U\G
Zn
Constant
K, H
Others
Bit
Word
Bit
Word
(S1)
(S2)
(D)
n
• If the comparison condition has been met, the corresponding devices specified by (D) will be turned on.
• If the comparison condition has not been met, the device designated by (D) will be turned OFF.
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 symbol of                                          .
(0)
OFF
(0)
(1)
OFF
ON
(1)
ON
+1
+2
n
b31
b0
(BIN)
(BIN)
(BIN)
1000
2000
5060
(BIN)
1106
+2
+4
Operation result
D
S2
+(n-1)
+(2n-2)
+(2n-2)
S2
S2
S2
D
D
D
n
(BIN)
(BIN)
(BIN)
1090
2080
5060
(BIN)
1106
b31
b0
+3,
+5,
S2
+(2n-1),
S1
S1
S1
S1
S1
S1
S1
S1
+(2n-1),
S2
+1,
S2
S2
n
+2
+4
+3,
+5,
+1,
(BIN)
32800
S1
S1
(0)
(1)
OFF
(0)
OFF
ON
(1)
ON
+1
+2
n
b31
b0
(BIN)
(BIN)
(BIN)
(BIN)
32700
40000
32800
2147400
+2
+4
Operation result
D
S2
+(n-1)
+(2n-2)
S2
S2
S2
D
D
D
n
+3,
+5,
S2
+(2n-1),
S2
+1,
S2
S2
b31
b0
+1,