Mitsubishi Electric MELDAS C6 Programming Manual page 193

Hide thumbs Also See for MELDAS C6:
Table of Contents

Advertisement

B/, B/P ... BCD 16-bit division
Bit device
X
Y M
L
F
B SB T SM V T
S1
S2
D
B/
B/P
Function
(1) The BCD data designated with S1 and the BCD data designated with S2 are divided, and the
division results are stored in the device designated with D.
S1
B15.....................B0
5678 (BCD)
(2) 0 to 9999 (BCD 16-bit) can be designated in S1.
1 to 9999 (BCD 16-bit) can be designated in S2.
(3) 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.
(Note 1)
An error occurs if the S1, or S2 BCD data is outside the range 0 to 9999 (BCD).
(Note 2)
An error occurs if S2 BCD data is "0".
8. Function Commands
B/, B/P
Usable device
Word device
C D R W SW Z SD K
Division command
B/
S1
S2
 B/P
S1
S2
S2
B15.....................B0
÷
1234 (BCD)
- 184 -
Get other manuals https://www.bkmanuals.com
Con-
Pointer
stant
H
P
Setting data
Division data or No. of device
S1
where division data is stored.
D
Division data or No. of device
S2
where division data is stored.
D
Head No. of device to store division
D
results.
Quotient
D
B15.....................B0
B15.....................B0
4 (BCD)
Digit
No. of
desig-
Index
steps
nation
5/6
Redundant
D+1
742 (BCD)

Advertisement

Table of Contents
loading

This manual is also suitable for:

Meldas c64

Table of Contents