EasyManua.ls Logo

Mitsubishi Electric MELSEC-Q/L - BIN 32-Bit Data Block Addition and Subtraction Operations

Mitsubishi Electric MELSEC-Q/L
1084 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
6 BASIC INSTRUCTIONS
6.2 Arithmetic Operation Instructions
259
6
BIN 32-bit data block addition and subtraction operations
DBK+(P), DBK-(P)
Processing details
DBK+
This instruction adds BIN 32-bit data stored in n-point devices starting from the device specified by (S1) to BIN 32-bit data
stored in n-point devices starting from the device specified by (S2) or a constant and then stores the operation result into
the nth device specified by (D) and up.
When a device is specified for (S2)
When a constant is specified for (S2)
Block addition is performed in 32-bit units.
The constant in the device specified by (S2) can be between -2147483648 to 2147483647 (BIN 32-bit data).
If the value specified by n is 0, the instruction will be not processed.
QnU(D)(H)CPU, QnUDE(H)CPU: the serial number (first five digits) is "10102" or later
Q00UJCPU, Q00UCPU, Q01UCPU, QnUDVCPU: Supported
(S1): Head number of the devices where the data to be added and subtracted are stored (BIN 32 bits)
(S2): Data for adding/subtracting or head number of the devices where the data for adding/subtracting is stored (BIN 32 bits)
(D): Head number of the devices where the addition and subtraction operation result will be stored (BIN 32 bits)
n: Number of addition/subtraction 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 
Basic
High
performance
Process
Redundant
Universal
LCPU
Ver.
DBK+, DBK-
DBK+P, DBK-P
(S1) (S2)
(D)
n
(S1) (S2)
(D)
n
P
indicates an instruction symbol of DBK+, DBK- .
Command
Command
S1
+1,
S1
+3,
S1
+5,
S1
+(2n-1),
S1
S1
+2
S1
+4
S1
+(2n-2)
b31
-30000 (BIN)
40000 (BIN)
-50000 (BIN)
60000 (BIN)
b0
n
+
S2 +1,
S2 +3,
S2 +5,
S2 +(2n-1),
S2
S2 +2
S2 +4
S2 +(2n-2)
b31
50000 (BIN)
20000 (BIN)
-10000 (BIN)
-20000 (BIN)
b0
n
D +1,
D +3,
D +5,
D +(2n-1),
D
D+2
D+4
D +(2n-2)
b31
20000 (BIN)
60000 (BIN)
-60000 (BIN)
40000 (BIN)
b0
n
+
b31 b0
(BIN)
(BIN)
(BIN)
(BIN)
b31 b0 b31 b0
(BIN)
(BIN)
(BIN)
n
n
(BIN)
20000
90000
110000
50000
(BIN)
-30000
40000
-50000
60000
0
S1
+1,
S1
+3,
S1
+5,
S1
+(2n-1),
S1
S2 +1, S2
S1
+2
S1
+4
S1
+(2n-2)
D +1,
D +3,
D +5,
D +(2n-1),
D
D+2
D+4
D +(2n-2)

Table of Contents

Related product manuals