Mitsubishi Electronics 13JW55 ユーザーズマニュアル
App. - 28
(2) Example
2
In example 2, D0 is divided by D1 to obtain D5 in 4 decimal places.
The dividend D0 is multiplied with 10000. The result of the dividing calculation
using this multiplied value is converted to a BCD value and output to an external
digital display.
K4Y50
K4Y40
K4Y60
D6, integral number
in 4 digits
in 4 digits
D5, decimal number
in 4 digits
in 4 digits
D7, remainder of
a decimal number
a decimal number
Project name
QA-6
Program name
MAIN
X0
0
D0
K4X30
BINP
D1
K4X20
BINP
D5
D1
Clears D2
10000-fold
D2
K0
MOVP
D3
D0
*P
D/P
D3
D5
D5
DBCDP
D7
D7
DBCDP
K4Y50
D6
MOVP
K4Y40
D5
MOVP
K4Y60
D7
MOVP
K10000
Integral part
Decimal part
Decimal number
remainder
remainder