Mitsubishi MELSEC-Q/L Programming Manual page 225

Table of Contents

Advertisement

Function
DBK+
(1) This instruction adds BIN 32-bit data stored in n-point devices starting from the device specified by
stored in n-point devices starting from the device specified by
the nth device specified by
When a device is specified for
b31
-30000
S1
+1,
S1
40000
+3,
+2
S1
S1
-50000
+5,
+4
S1
S1
60000
+n 1,
+n 2
S1
S1
When a constant is specified for
b31
-30000
S1
+1,
S1
40000
S1
+3,
S1
+2
-50000
S1
+5,
S1
+4
60000
+n 1,
+n 2
S1
S1
(2) Block addition is executed in 32-bit units.
(3) The constant in the device specified by
(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.
+K2
K2147483647
(00000002
(7FFFFFFF
)
H
K 2147483647
+K
2
( FFFFFFFE
(80000001
)
H
DBK-
(1) This instruction subtracts BIN 32-bit data stored in the n-point devices starting from the device specified by
constant from BIN 32-bit data stored in n-point devices starting from the device specified by
operation result into the nth device specified by
When a device is specified for
b31
-55555
+1,
S1
S1
+3,
+2
33333
S1
S1
44444
S1
+5,
S1
+4
13579
S1
+n 1,
S1
+n 2
When a constant is specified for
b31
-99999
S1
+1,
S1
99999
+3,
+2
S1
S1
-59999
+5,
+4
S1
S1
79999
+n 1,
+n 2
S1
S1
(2) Block subtraction is executed in 32-bit units.
(3) The constant in the device specified by
(4) If the value specified by n is 0, the instruction will be not processed.
and up,
D
S2
b0
(BIN)
S2
+1,
S2
(BIN)
+3,
S2
S2
n
(BIN)
+
+5,
S2
S2
(BIN)
+n 1,
S2
S2
S2
b0
(BIN)
(BIN)
n
(BIN)
+
S2
+1,
S2
(BIN)
can be between
S2
K 2147483647
) ( 80000001
)
H
H
K2147483647
) ( 7FFFFFFF
)
H
H
and up,
D
S2
b0
(BIN)
+1,
S2
S2
(BIN)
+3,
S2
S2
n
(BIN)
+5,
S2
S2
(BIN)
S2
+n 1,
S2
S2
b0
(BIN)
(BIN)
n
(BIN)
+1,
S2
S2
(BIN)
can be between
S2
DBK+, DBK+P, DBK-, DBK-P
or a constant. and then stores the operation result into
S2
b31
b0
50000
(BIN)
20000
(BIN)
+2
n
-10000
(BIN)
+4
-20000
(BIN)
+n 2
b31
b0
50000
(BIN)
2147483648 to 2147483647 (BIN 32-bit data).
b31
b0
44445
(BIN)
+2
3333
(BIN)
n
+4
-10000
(BIN)
12345
(BIN)
+n 2
b31
b0
9999
(BIN)
2147483648 to 2147483647 (BIN 32-bit data).
to BIN 32-bit data
S1
b31
20000
(BIN)
D
+1,
D
60000
(BIN)
D
+3,
D
+2
-60000
(BIN)
D
+5,
D
+4
40000
(BIN)
D
+n 1,
D
+n 2
b31
20000
(BIN)
D
+1,
D
90000
(BIN)
D
+3,
D
+2
0
(BIN)
D
+5,
D
+4
110000
(BIN)
D
+n 1,
D
+n 2
or a
S2
, and then stores the
S1
b31
-1000000
(BIN)
D
+1,
D
30000
D
+3,
D
+2
(BIN)
D
+5,
D
+4
54444
(BIN)
1234
(BIN)
D
+n 1,
D
+n 2
b31
-109998
(BIN)
D
+1,
D
90000
(BIN)
D
+3,
D
+2
69998
(BIN)
D
+5,
D
+4
70000
(BIN)
D
+n 1,
D
+n 2
1
2
3
b0
4
n
b0
6
n
7
8
b0
n
b0
n
223

Advertisement

Table of Contents
loading

Table of Contents