EasyManua.ls Logo

Omron CP - PROGRAMMING MANUAL 05-2007 - Page 413

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...
380
Symbol Math Instructions Section 3-10
Flags
Precautions When the content of Dr is 0, an error will be generated and the Error Flag will
turn ON.
If as a result of the division, the content of R is 0000 hex, the Equals Flag will
turn ON.
If as a result of the division, the content of the leftmost bit of R is 1, the Nega-
tive Flag will turn ON.
Examples When CIO 0.00 is ON in the following example, D100 will be divided by D110
as 4-digit signed binary values, the quotient will be output to D120, and the
remainder to D121.
3-10-24 DOUBLE SIGNED BINARY DIVIDE: /L(431)
Purpose Divides 8-digit (double-word) signed hexadecimal data and/or constants.
Ladder Symbol
Variations
Applicable Program Areas
Operand Specifications
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 is 0.
OFF in all other cases.
Negative Flag N ON when the leftmost bit of the R is 1.
OFF in all other cases.
0.00
D100
D110
D120
/L(431)
R
Dd
Dr
Dd: 1st dividend word
Dr: 1st divisor word
R: 1st result word
Variations Executed Each Cycle for ON Condition /L(431)
Executed Once for Upward Differentiation @/L(431)
Executed Once for Downward Differentiation Not supported.
Immediate Refreshing Specification Not supported.
Block program areas Step program areas Subroutines Interrupt tasks
OK OK OK OK
Area Dd Dr R
CIO Area CIO 0 to CIO 6142 CIO 0 to
CIO 6140
Work Area W0 to W510 W0 to W508
Holding Bit Area H0 to H510 H0 to H508

Table of Contents

Related product manuals