EasyManua.ls Logo

Omron CP - PROGRAMMING MANUAL 05-2007 - Page 277

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...
244
Comparison Instructions Section 3-6
Precautions Do not program another instruction between ZCP(088) and an input condition
that accesses the result of ZCP(088) because the other instruction might
change the status of the Arithmetic Flags.
Example When CIO 0.00 is ON in the following example, the 16-bit unsigned binary
data in D0 is compared to the range 0005 to 001F hex (5 to 31 decimal) and
the result is output to the Arithmetic Flags.
CIO 100.00 is turned ON if 0005 hex
content of D0 001F hex.
CIO 100.01 is turned ON if the content of D0 > 001F hex.
CIO 100.02 is turned ON if the content of D0 < 0005 hex.
3-6-12 DOUBLE AREA RANGE COMPARE: ZCPL(116)
Purpose Compares a 32-bit unsigned binary value (CD+1, CD) with the range defined
by lower limit (LL+1, LL) and upper limit (UL+1, UL). The results are output to
the Arithmetic Flags.
Ladder Symbol
Variations
Equal Flag = ON if LL CD UL.
OFF in all other cases.
Not Equal Flag <> Left unchanged.
Less Than Flag < ON if CD < LL.
OFF in all other cases.
Less Than or Equal Flag < = Left unchanged.
Negative Flag N Left unchanged.
Name Label Operation
D0
LL CD UL
= ON
D0
> ON
D0
< ON
>
>
0005 hex
001F hex
001F hex
0005 hex
Arithmetic
Flags
100.00
0.00
>
100.01
=
100.02
<
ZCP
D0
#5
#1F
CD
LL
UL
ZCPL(116)
CD
LL
UL
CD: First word of Comparison Data
LL: First word of Lower Limit
UL: First word of Upper Limit
Variations Executed Each Cycle for ON Condition ZCPL(116)
Executed Once for Upward Differentiation Not supported
Executed Once for Downward Differentiation Not supported
Immediate Refreshing Specification Not supported

Table of Contents

Related product manuals