EasyManua.ls Logo

Mitsubishi Electric MELSEC-Q/L - Page 243

Mitsubishi Electric MELSEC-Q/L
1084 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
6 BASIC INSTRUCTIONS
6.2 Arithmetic Operation Instructions
241
6
Program example
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]
Step
Instruction
Device
Multiplication result
482868 4 27953
D8 D1 (Upper 4 digits)
X0XF
4526
D0 (Lower 4 digits)
Multiplier
Multiplicand
Step
Instruction
Device
/
000
4
21
3
4
6578
D502
70
4 2
D503
0004
Y30Y3F
Quotient
Remainder
Quotient

Table of Contents

Related product manuals