![Omron CVM1D Operation Manual Download Page 282](http://html1.mh-extra.com/html/omron/cvm1d/cvm1d_operation-manual_742532282.webp)
277
DOUBLE SIGNED BINARY DIVIDE
When the execution condition is OFF, /L(431) is not executed. When the execu-
tion condition is ON, /L(431) divides the signed 8-digit content of Dd and D+1 by
the signed content of Dr and Dr+1 and the result is placed in R to R+3: the quo-
tient 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
UNSIGNED BINARY DIVIDE
When the execution condition is OFF, /U(432) is not executed. When the execu-
tion condition is ON, /U(432) divides the unsigned content of Dd by the unsigned
content of Dr and the result is placed in R and R+1: the quotient in R, the remain-
der in R+1.
Dd
Dr
R
R + 1
Quotient
Remainder
DOUBLE UNSIGNED BINARY DIVIDE
When the execution condition is OFF, /UL(433) is not executed. When the
execution condition is ON, /UL(433) divides the 8-digit unsigned content of Dd
and D+1 by the unsigned 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
S
2
(or S
2
, and S
2
+1) must not be all zeros.
Note Refer to page 101 for general precautions on operand data areas.
Flags
ER (A50003):
Dr (or Dr and Dr+1) is all zeroes.
The content of a
*
DM word is not BCD when set for BCD.
EQ(A50006)
The division result is all zeroes in the quotient.
N (A50008)
The leftmost bit (MSB) of word R (or word R+1 for “double”
instructions) after the division is “1.”
Example
/L Operation
When CIO 000000 is ON in the following example, the signed content of D00101
and D00100 is divided by the signed content of D00111 and D00110, in eight-
digit binary. When the result is obtained, the quotient is output to D00121 and
D00120, and the remainder is output to D00123 and D00122.
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...