Bin 32-Bit Addition And Subtraction Operations (D+(P),D-(P)) - Mitsubishi MELSEC Q Series Programming Manual

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

Advertisement

D+(P),D-(P)
6.2.2

BIN 32-bit addition and subtraction operations (D+(P),D-(P))

D+(P),D-(P)
When two data are set ((
D+, D
D+P, D P
Setting
Data
S
D
Function
D+
(1) Adds 32-bit BIN data designated by
result of the addition 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.
K2147483647
(7FFFFFFF
K 2147483648
(80000000
6-26
+1,
)+(
D
D
Command
Command
: Data for additing/subtracting or head number of the devices where the data for additing/subtracting is stored
S
(BIN 32 bits)
: Head number of the devices where the data to be added to/subtracted from is stored (BIN 32 bits)
D
Internal Devices
R, ZR
Bit
Word
D
D
+1
b31
b16 b15
b0
b31
567890 (BIN)
and
can be designated at between
S
D
+K2
K
2147483647
(00000002
)
(80000001
)
H
H
H
+K 2
K2147483646
)
(FFFFFFFE
)
(7FFFFFFE
H
H
High
Basic
performance
+1,
) (
+1,
), (
+1,
S
S
D
D
D
indicates an instruction symbol of
P
J
\
U
\G
Bit
Word
to 32-bit BIN data designated by
D
.
D
S
S
D
+1
+1
b16 b15
b0
b31
b16 b15
123456 (BIN)
691346 (BIN)
2147483648 and 2147483647
Since bit 31 value is "1",
)
result of operation takes a negative value.
Since bit 31 value is "0",
)
H
result of operation takes a positive value.
Process
Redundant Universal
LCPU
)-(
+1,
) (
+1,
D
S
S
D
.
D+/
D
S
D
S
D
Constants
Zn
Other
K, H
––
––
––
, and stores the
S
D
b0
))
D

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Melsec l series

Table of Contents