Omron CP - PROGRAMMING MANUAL 05-2007 Programming Manual page 413

Cp1h/cp1l cpu unit
Table of Contents

Advertisement

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

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents