Mitsubishi Electric MELDAS 60 Series Programming Manual page 102

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

Advertisement

/ ... BIN 16-bit division
Bit device
X
Y
M
L SM F
S1
S2
D
/
Function
(1) The BIN data designated with S1 is divided by BIN data designated with S2, and the division
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) For the word device, the operation results will be stored as quotient and redundant using the
32-bit.
Quotient ... Stored in low-order 16-bit.
Redundant ... Stored in high-order 16-bit.
(5) The S1 and S2 data will not change even after operation is executed.
Usable device
Word device
T
C
D
R
Z
Division command
S1
/
S2
B15.....................B0
÷
1234 (BIN)
Judgment of
positive/negative
Positive
Negative
Con-
Pointer
stant
K
H
P
Setting data
Division data or No. of device
S1
where division data is stored.
Division data or No. of device
S2
S2
D
where division data is stored.
Head No. of device to store division
D
results.
Quotient
D
B15.....................B0
4 (BIN)
- 94 -
/
Digit
No. of
desig-
Level
steps Index
nation
N
5
Redundant
D+1
B15.....................B0
742 (BIN)

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents