Mitsubishi MELSEC Q Series Programming Manual page 265

Common instruction 1/2
Hide thumbs Also See for MELSEC Q Series:
Table of Contents

Advertisement

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

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Melsec l series

Table of Contents