EasyManua.ls Logo

Omron CP - PROGRAMMING MANUAL 05-2007 - Page 418

Omron CP - PROGRAMMING MANUAL 05-2007
1175 pages
Print Icon
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...
385
Symbol Math Instructions Section 3-10
Description /UL(433) divides the unsigned binary values in Dd and Dd+1 by those in Dr
and Dr+1 and outputs the quotient to R, R+1 and the remainder to R+2, and
R+3.
Flags
Precautions When the content of Dr, Dr+1 is 0, the Error Flag will turn ON.
If as a result of the division, the content of R, R+1, is 0000 hex, the Equals
Flag will turn ON.
If as a result of the division, the content of the leftmost bit of R+1 is 1, the Neg-
ative Flag will turn ON.
Examples When CIO 0.01 is ON in the following example, D201 and D200 will be
divided by D211 and D210 as 8-digit unsigned hexadecimal values, the quo-
tient will be output to D221 and D220, and the remainder will be output to
D223 and D222.
3-10-27 BCD DIVIDE: /B(434)
Purpose Divides 4-digit (single-word) BCD data and/or constants.
Ladder Symbol
Variations
R + 1 RR + 3 R + 2
÷
Dd + 1 Dd
Dr + 1 Dr
Remainder Quotient
(Unsigned binary)
(Unsigned binary)
(Unsigned binary)
Name Label Operation
Error Flag ER ON when the result is 0.
OFF in all other cases.
Equals Flag = ON when as a result of the division R+1, R is 0.
OFF in all other cases.
Negative Flag N ON when the leftmost bit of the R+1, R is 1.
OFF in all other cases.
0.01
D200
D210
D220
/B(434)
R
Dd
Dr
Dd: Dividend word
Dr: Divisor word
R: Result word
Variations Executed Each Cycle for ON Condition /B(434)
Executed Once for Upward Differentiation @/B(434)
Executed Once for Downward Differentiation Not supported.
Immediate Refreshing Specification Not supported.

Table of Contents

Related product manuals