EasyManua.ls Logo

Mitsubishi MELSEC-Q/L - Page 225

Mitsubishi MELSEC-Q/L
850 pages
Print Icon
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...
223
DBK+, DBK+P, DBK-, DBK-P
1
2
3
4
6
7
8
6.2 Arithmetic Operation Instructions
6.2.14 DBK+, DBK+P, DBK-, DBK-P
Function
DBK+
(1) This instruction adds BIN 32-bit data stored in n-point devices starting from the device specified by to BIN 32-bit data
stored in n-point devices starting from the device specified by or a constant. and then stores the operation result into
the nth device specified by and up,
When a device is specified for
When a constant is specified for
(2) Block addition is executed in 32-bit units.
(3) The constant in the device specified by can be between 2147483648 to 2147483647 (BIN 32-bit data).
(4) If the value specified by n is 0, the instruction will be not processed.
(5) The following will happen if an overflow occurs in an operation result:
The carry flag in this case is not turned on.
DBK-
(1) This instruction subtracts BIN 32-bit data stored in the n-point devices starting from the device specified by or a
constant from BIN 32-bit data stored in n-point devices starting from the device specified by , and then stores the
operation result into the nth device specified by and up,
When a device is specified for
When a constant is specified for
(2) Block subtraction is executed in 32-bit units.
(3) The constant in the device specified by can be between 2147483648 to 2147483647 (BIN 32-bit data).
(4) If the value specified by n is 0, the instruction will be not processed.
S1
S2
D
S2
+
b31 b0
(BIN)
(BIN)
(BIN)
+2
+4
D
S2
+n 2 +n 2
S2
S2
S2
D
D
D
n
(BIN)
(BIN)
(BIN)
b31 b0
+3,
+5,
S1
S2
S1
S1
S1
+n 1,
S1
S1
S1
S1
+n 1,
S2
+1,
b31 b0
(BIN)
(BIN)
(BIN)
+2
+4
+n 2
n
+3,
+5,
+n 1,
D
D
D
D
+1,
S2
S2
n
+2
+4
+3,
+5,
+1,
(BIN)
20000
60000
40000
(BIN)
50000
20000
-10000
-20000
(BIN)
-30000
40000
-50000
60000
-60000
S2
+
b31 b0
(BIN)
D
+n 2
S2
D
D
D
(BIN)
(BIN)
(BIN)
b31 b0
+1,
S1
S1
S1
S1
S1
S1
S1
S1
+n 1,
b31 b0
(BIN)
(BIN)
(BIN)
+2
+4
+n 2
n
+3,
+5,
+n 1,
D
D
D
D
+1,
S2
n
+2
+4
+3,
+5,
+1,
(BIN)
20000
90000
110000
50000
(BIN)
-30000
40000
-50000
60000
0
S2
K2147483647
(7FFFFFFF
H)
K 2147483647
(80000001
H)
+K
2
+K2
K 2147483647
K2147483647
(00000002
H
)
(
80000001
H
)
(
FFFFFFFEH)
(
7FFFFFFF
H)
S2
S1
D
S2
b31 b0
(BIN)
(BIN)
(BIN)
+2
+4
D
S2
+n 2+n 2
S2
S2
S2
D
D
D
n
(BIN)
(BIN)
(BIN)
b31 b0
+3,
+5,
S1
S2
S1
S1
S1
+n 1,
S1
S1
S1
S1
+n 1,
S2
+1,
b31 b0
(BIN)
(BIN)
(BIN)
+2
+4
+n 2
n
+3,
+5,
+n 1,
D
D
D
D
+1,
S2
S2
n
+2
+4
+3,
+5,
+1,
(BIN)
30000
1234
(BIN)
44445
3333
-10000
12345
(BIN)
-55555
33333
44444
13579
54444
-1000000
S2
b31 b0
(BIN)
D
+n 2
S2
D
D
D
(BIN)
(BIN)
(BIN)
b31 b0
+1,
S1
S1
S1
S1
S1
S1
S1
S1
+n 1,
b31 b0
(BIN)
(BIN)
(BIN)
+2
+4
+n 2
n
+3,
+5,
+n 1,
D
D
D
D
+1,
S2
n
+2
+4
+3,
+5,
+1,
(BIN)
-109998
90000
70000
9999
(BIN)
-99999
99999
-59999
79999
69998
S2

Table of Contents

Related product manuals