6 BASIC INSTRUCTIONS
6.2 Arithmetic Operation Instructions
241
6
• The following program multiplies, when X20 is turned ON, the BCD data at X0 to XF by the BCD data at D8 and stores the
operation result at D0 to D1.
• The following program divides 5678 by the BCD data 1234, stores the result at D502 and D503, and at the same time
outputs the quotient to Y30 to Y3F.
[Ladder Mode] [List Mode]
[Operation]
[Ladder Mode] [List Mode]
[Operation]
Multiplication result
482868 4 27953
D8 D1 (Upper 4 digits)
X0XF
4526
D0 (Lower 4 digits)
Multiplier
Multiplicand
/
000
4
21
3
4
6578
D502
70
4 2
D503
0004
Y30Y3F
Quotient
Remainder
Quotient