Omron SYSMAC CV Series Operation Manual page 302

Ladder diagrams
Hide thumbs Also See for SYSMAC CV Series:
Table of Contents

Advertisement

Symbol Math Instructions
Precautions
Flags
Example
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.
Remainder
R+3
R+2
Dr+1
Dr
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.
Dr
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.
Remainder
R+3
R+2
Dr+1
Dr
S
(or S
, and S
+1) must not be all zeros.
2
2
2
Note Refer to page 115 for general precautions on operand data areas.
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."
/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.
Quotient
R+1
R
Dd+1
Dd
Quotient
Remainder
R
R + 1
Dd
Quotient
R+1
R
Dd+1
Dd
Section 5-20

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Cv2000Cvm1Cv500Cv1000

Table of Contents