Bin 32-Bit Block Data Comparisons - Mitsubishi Electric MELSEC-Q/L Programming Manual

Hide thumbs Also See for MELSEC-Q/L:
Table of Contents

Advertisement

BIN 32-bit block data comparisons

DBKCMP(P)
High
Basic
Process
performance
• QnU(D)(H)CPU, QnUDE(H)CPU: the serial number (first five digits) is "10102" or later
• Q00UJCPU, Q00UCPU, Q01UCPU, QnUDVCPU: Supported
DBKCMP
DBKCMP
(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
Internal device
data
Bit
(S1)
(S2)
(D)
n
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.
• 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.
+1,
S1
S1
S1
+3,
S1
+2
+5,
+4
S1
S1
+(2n-1),
+(2n-2)
S1
S1
• 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).
b31
+1,
32800
(BIN)
S1
S1
• Specify (D) out of the range of n-point devices starting from the device specified by (S1) and (S2).
6 BASIC INSTRUCTIONS
202
6.1 Comparison Operation Instructions
Ver.
Redundant
Universal
LCPU
Command
Command
P
R, ZR
Word
b31
b0
1090
(BIN)
S2
2080
(BIN)
S2
n
5060
(BIN)
S2
1106
(BIN)
S2
+1,
S2
S2
b0
+3,
S2
S2
+5,
S2
S2
+(2n-1),
S2
S2
indicates an instruction symbol of
DBKCMP
S1
DBKCMP
P
S1
J\
Bit
Word
b31
1000
+1,
S2
2000
+3,
+2
S2
5060
+5,
+4
S2
1106
+(2n-1),
+(2n-2)
S2
b31
b0
32700
(BIN)
+2
40000
(BIN)
n
+4
32800
(BIN)
+(2n-2)
2147400
(BIN)
/
/
/
n
D
S2
n
D
S2
U\G
Zn
Constant
K, H
b0
(BIN)
D
(BIN)
+1
D
n
(BIN)
+2
D
(BIN)
+(n-1)
D
Operation result
(1)
ON
D
(0)
+1
OFF
D
(1)
+2
ON
D
(0)
+(n-1)
OFF
D
.
/
/
Others
Operation result
(0)
OFF
(0)
OFF
n
(1)
ON
(1)
ON
n

Advertisement

Table of Contents
loading

Table of Contents