EasyManua.ls Logo

Omron SYSMAC CV Series - Double Bcd Divide: Divl(077)

Omron SYSMAC CV Series
636 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...
(076)
MULL D0005 0005 0007
0000
01
258
Note Refer to page 115 for general precautions on operand data areas.
Flags ER (A50003): Content of Md, Md+1, Mr, or Mr+1 is not BCD.
Content of *DM word is not BCD when set for BCD.
EQ (A50006): The result is 0.
Example When CIO 000001 is ON in the following example, the 8-digit content of D00005
and D00006 is multiplied by the content of CIO 0005 and CIO 0006 and places
the 16-digit result in CIO 0007, CIO 0008, CIO 0009, and CIO 0010.
Address Instruction Operands
00000 LD 000001
00001 MULL(076)
D00005
0005
0007
80013592
D0006 D0005
00000025
0006 0005
00000020
0010 0009
00339800
0008 0007
X
5-18-10 DOUBLE BCD DIVIDE: DIVL(077)
Variations
j DIVL(077)
(077)
DIVL Dd Dr R
Operand Data AreasLadder Symbol
Dd: 1
st
dividend word CIO, G, A, T, C, #, DM
R: 1
st
result word CIO, G, A, DM
Dr: 1
st
divisor word CIO, G, A, T, C, #, DM
When the execution condition is OFF, DIVL(077) is not executed. When the
execution condition is ON, the 8-digit content of Dd and D+1 is divided by the
content of Dr and Dr+1 and the result is placed in R to R+3: the quotient in R and
R+1, and the remainder in R+2 and R+3.
R+1 R
QuotientRemainder
Dd+1 DdDr+1 Dr
R+3 R+2
Note With version-2 CVM1 CPUs, mathematics instructions can use symbols. The
instructions corresponding to DIV(073) and DIVL(077) are /B(434) and /
BL(435).
Dr and Dr+1 must not contain 0 and the content of Dd, Dd+1, Dr or Dr+1 must be
BCD.
Note Refer to page 115 for general precautions on operand data areas.
Description
Precautions
BCD Calculation Instructions Section 5-18

Table of Contents

Related product manuals