6.2 Arithmetic Operation Instructions
6.2.8 8-digit BCD data multiplication and division
6-41
6
BA
S
IC
INSTRUCTIONS
DB*, DB/
DB*, DB/
(2) In the following program, the BCD value in Var_D0 is divided by the BCD value in Var_D8
when X0B turns ON, and the result is stored to Var_D765.
[Structured ladder]
[Operation]
Divisor
5
1
2
6
7
3
4
8
9
9
8
6
Var_D0
Dividend
4
3
2
1
Q
uotient
0
0
0
0
0
0
0
6
8
0
2
8
8
1
3
3
(Lo
w
er 4 digits)
(
Upp
er 4 digits)
Remainder
Var_D8
Var_D7
65
[0]
Var_D7
65
[
1
]
(Lo
w
er 4 digits)
(
Upp
er 4 digits)
Summary of Contents for MELSEC Q Series
Page 1: ...Structured Programming Manual Mitsubishi Programmable Controller QCPU Common Instructions ...
Page 2: ......
Page 14: ...A 12 MEMO ...
Page 340: ...6 178 MEMO MTR ...
Page 708: ...7 368 MEMO ...
Page 776: ...8 68 MEMO ...
Page 796: ...9 20 MEMO ...
Page 804: ...App 8 MEMO ...
Page 812: ...Index 8 MEMO ...
Page 815: ......