![Omron CVM1D Скачать руководство пользователя страница 251](http://html1.mh-extra.com/html/omron/cvm1d/cvm1d_operation-manual_742532251.webp)
(076)
MULL
D0005
0005
0007
0000
01
246
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
8 0 0 1 3 5 9 2
D0006
D0005
0 0 0 0 0 0 2 5
0006
0005
0 0 0 0 0 0 2 0
0010
0009
0 0 3 3 9 8 0 0
0008
0007
X
5-18-10 DOUBLE BCD DIVIDE: DIVL(077)
Variations
j
DIVL(077)
(077)
DIVL
Dd
Dr
R
Operand Data Areas
Ladder 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
Quotient
Remainder
Dd+1
Dd
Dr+1
Dr
R+3
R+2
Note An equivalent symbol math instruction (/BL(435)) is also available.
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 101 for general precautions on operand data areas.
Flags
ER (A50003):
Dr and Dr+1 contain 0.
Content of Dd, Dd+1, Dr or Dr+1 is not BCD.
The content of a
*
DM word is not BCD when set for BCD.
CY (A50004):
There is a carry in the result.
EQ (A50006):
The result is 0.
Description
Precautions
BCD Calculation Instructions
Section 5-18
Содержание CVM1D
Страница 462: ...SYSMAC CVM1D Duplex System Programmable Controllers Operation Manual Revised August 2001...
Страница 463: ...iv...
Страница 465: ...vi...