![background image](http://html1.mh-extra.com/html/omron/cvm1d/cvm1d_operation-manual_742532284.webp)
(435)
/BL D00100 D00110 D00120
0000
00
279
DOUBLE BCD DIVIDE
When the execution condition is OFF, /BL(435) is not executed. When the
execution condition is ON, the BCD 8-digit content of Dd and D+1 is divided by
the BCD 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
Precautions
Dd and Dr (or Dd, Dd+1, Dr, and Dr+1) must be BCD. If any other data is used,
the Error Flag (A50003) will turn ON and the instruction will not be executed.
Note Refer to page 101 for general precautions on operand data areas.
Flags
ER (A50003):
Dd and Dr (or Dd, Dd+1, Dr, and Dr+1) are not BCD.
The content of a
*
DM word is not BCD when set for BCD.
EQ(A50006)
The division result is all zeroes.
Example
/BL Operation
When CIO 000001 is ON in the following example, the content of D00201 and
D00200 is divided by the content of D00211 and D00210, in eight-digit BCD.
When the result is obtained, the quotient is output to D00221 and D00220, and
the remainder is output to D00223 and D00222.
Address
Instruction
Operands
00000
LD
000000
00001
/BL(435)
D00100
D00110
D00120
Symbol Math Instructions
Section 5-20
Summary of Contents for CVM1D
Page 462: ...SYSMAC CVM1D Duplex System Programmable Controllers Operation Manual Revised August 2001...
Page 463: ...iv...
Page 465: ...vi...