Mitsubishi Electric MELDAS 60 Series Programming Manual page 94

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

Advertisement

– ... BIN 16-bit subtraction
Bit device
X
Y
M
L SM F
S1
S2
D
-
Function
(1) The device designated with S2 is subtracted From the device designated with S1, and the
subtraction results are stored in the device designated with D.
-
S1
B15.....................B0
5678 (BIN)
(2) -32768 to 32767 (BIN 16-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 (B15).
B15
0
1
(4) The carry flag will not turn ON even if an underflow results.
Usable device
Word device
T
C
D
R
Z
Subtraction command
-
S1
S2
D
S1
B15.....................B0
1234 (BIN)
Judgment of
positive/negative
Positive
Negative
Con-
Pointer
stant
K
H
P
Setting data
Subtraction data or No. of device
S1
where subtraction data is stored.
Subtraction data or No. of device
S2
D
S2
where subtraction data is stored.
No. of device to store subtraction
D
results.
S2
B15.....................B0
- 86 -
Digit
No. of
desig-
Level
steps Index
nation
N
4
D
4444 (BIN)

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents