D+
- 88 -
{ D+ ... BIN 32-bit addition
Usable device
Bit device Word device
Con-
stant
Pointer Level
X Y M L SM F T C D R Z K H P N
Digit
desig-
nation
No. of
steps
Index
S1
S2
D
4/5
Addition command
D+
D+
S2
S1
D
Setting data
S2
S1
Addition data or head No. of device
where addition data is stored.
Head No. of device to store addition
results.
D
Addition data or head No. of device
where addition data is stored.
Function
(1) The BIN data designated with S1 and the BIN data designated with S2 are added, and the
addition results are stored in the device designated with D.
D+
S2S1 D
567890 (BIN) 123456 (BIN) 691346 (BIN)
B31......B16B15.......B0
S1S1+1
S2S2+1 DD+1
+
B31......B16B15.......B0
B31......B16B15.......B0
(2) -2147483648 to 2147483647 (BIN 32-bit) can be designated in S1 and S2.
(3) The positive/negative of the data in S1, S2 and D is determined with the highest-order bit (B31).
B31
Judgment of
positive/negative
0 Positive
1 Negative
(4) The carry flag will not turn ON even if an overflow results.