EasyManua.ls Logo

Omron CP - PROGRAMMING MANUAL 05-2007 - Page 255

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...
222
Comparison Instructions Section 3-6
Flags
Precautions Do not program another instruction between CMP(020) and an input condition
that accesses the result of CMP(020) because the other instruction might
change the status of the Arithmetic Flags.
3-6-4 DOUBLE COMPARE: CMPL(060)
Purpose Compares two double unsigned binary values (constants and/or the contents
of specified words) and outputs the result to the Arithmetic Flags in the Auxil-
iary Area.
Ladder Symbol
Variations
Applicable Program Areas
Operand Specifications
Name CX-Programmer
label
Operation
Greater Than Flag P_GT ON if S
1
> S
2
.
OFF in all other cases.
Greater Than or Equal Flag P_GE ON if S
1
S
2
.
OFF in all other cases.
Equal Flag P_EQ ON if S
1
= S
2
.
OFF in all other cases.
Not Equal Flag P_NE ON if S
1
S
2
.
OFF in all other cases.
Less Than Flag P_LT ON if S
1
< S
2
.
OFF in all other cases.
Less Than or Equal Flag P_LE ON if S
1
S
2
.
OFF in all other cases.
CMPL(060)
S
1
S
2
S1: Comparison data 1
S
2: Comparison data 2
Variations Executed Each Cycle for ON Condition CMPL(060)
Executed Once for Upward Differentiation Not supported
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 S
1
S
2
CIO Area CIO 0 to CIO 6142
Work Area W0 to W510
Holding Bit Area H0 to H510
Auxiliary Bit Area A0 to A958
Timer Area T0000 to T4094
Counter Area C0000 to C4094
DM Area D0 to D32766

Table of Contents

Related product manuals