6-24
6.2 Arithmetic Operation Instructions
6.2.2 32-bit BIN data addition and subtraction
D+, D-
6.2.2
32-bit BIN data addition and subtraction
D+, D-
F
unct
i
on
D+(P)
(1) Adds 32-bit BIN data specified for
to 32-bit BIN data specified for
, and stores the
result of the addition to the variable specified for
.
(2) Values can be specified between 2147483648 and 2147483647 (BIN 32 bits) for
,
and .
(3) Judgment of whether the value is positive or negative is made on the basis of the most
significant bit (b31).
• 0: Positive
• 1: Negative
D+(P)
D-(P)
P: Executing condition
:
indicates any of the following
instructions.
D+
D+P
D-
D-P
Input argument,
EN:
Executing condition
: Bit
s1:
Data to be added or subtracted
: ANY32
s2:
Addition or subtraction data
: ANY32
Output argument,
ENO:
Execution result
: Bit
d:
Operation result
: ANY32
Setting
data
Internal device
R, ZR
J
\
U
\G
Zn
Constant
K, H
Others
Bit
Word
Bit
Word
−
−
−
−
U
n
i
versa
l
UD
Hi
g
h
Per
f
ormance
ST
D+
EN
ENO
s
1
d
s
2
Structured ladder
Not su
pp
orted
s
1
s
1
s
2
d
s
1
s
2
d
+
12
3
456
(B
IN
)
b
0
b16 b15
56
7890
(B
IN
)
b
3
1
6
9
1
3
46
(B
IN
)
b
0
b16 b15
b
3
1
b
0
b16 b15
b
3
1
s
1
s
2
d
s
1
s
2
d
Summary of Contents for MELSEC Q Series
Page 1: ...Structured Programming Manual Mitsubishi Programmable Controller QCPU Common Instructions ...
Page 2: ......
Page 14: ...A 12 MEMO ...
Page 340: ...6 178 MEMO MTR ...
Page 708: ...7 368 MEMO ...
Page 776: ...8 68 MEMO ...
Page 796: ...9 20 MEMO ...
Page 804: ...App 8 MEMO ...
Page 812: ...Index 8 MEMO ...
Page 815: ......