Mitsubishi Electric MELDAS 60 Series Programming Manual page 92

Plc programming
Hide thumbs Also See for MELDAS 60 Series:
Table of Contents

Advertisement

D+ ... BIN 32-bit addition
Bit device
X
Y
M
L SM F
S1
S2
D
D+
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.
S1
D+
S1+1
B31......B16B15......B0
567890 (BIN)
(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
0
1
(4) The carry flag will not turn ON even if an overflow results.
Usable device
Word device
T
C
D
R
Z
Addition command
D+
S1
S2
D
S1
S2+1
B31......B16B15......B0
+
123456 (BIN)
Judgment of
positive/negative
Positive
Negative
Con-
Pointer
stant
K
H
P
Setting data
Addition data or head No. of device
S1
where addition data is stored.
Addition data or head No. of device
S2
D
S2
where addition data is stored.
Head No. of device to store addition
D
results.
S2
D+1
B31......B16B15......B0
691346 (BIN)
- 84 -
D+
Digit
No. of
desig-
Level
steps Index
nation
N
4/5
D

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents