Mitsubishi MELSEC QS Series Programming Manual page 109

Hide thumbs Also See for MELSEC QS Series:
Table of Contents

Advertisement

D –
(1) Subtracts 32-bit BIN data designated by
stores the result of the subtraction at the device designated by
(2) The values for
(BIN 32 bits).
(3) Judgment of whether the data is positive or negative is made on the basis of the most
significant bit (b31).
• 0: Positive
• 1: Negative
(4) The following will happen when an underflow or overflow is generated in an operation result:
The carry flag in this case does not go ON.
. K 214748364 8
(H80000000)
. K 2147483647
( H7FFFFFFF)
Operation Error
(1) There are no operation errors associated with the +(P) or –(P) instructions.
S
D
D
+1
+1
b31
b16 b15
b0
b31
b16 b15
567890 (BIN)
123456 (BIN)
and
can be designated at between
S
D
K214748364 6
K2
( H00000002)
(H7FFFFFFE)
K
K
2
2147483647
( HFFFFFFFE)
(H80000001 )
6.2.2 BIN 32-bit addition and subtraction operations (D+(P), D–(P))
from 32-bit BIN data designated by
D
.
D
S
D +1
D
b0
b31
b16 b15
444434 (BIN)
2147483648 and 2147483647
Since b31 is "0", the judgment is
a positive value.
Since b31 is "1", the judgment is
a negative value.
6.2 Arithmetic Operation Instructions
D+(P), D-(P)
and
S
b0
6-11
6

Advertisement

Table of Contents
loading

Table of Contents