EasyManua.ls Logo

Omron SYSMAC CV Series - Page 302

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...
290
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
QuotientRemainder
Dd+1 DdDr+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.
DdDr
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
QuotientRemainder
Dd+1 DdDr+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 115 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

Table of Contents

Related product manuals