EasyManua.ls Logo

Omron CP - PROGRAMMING MANUAL 05-2007 - Page 258

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...
225
Comparison Instructions Section 3-6
Example When CIO 0.00 is ON in the following example, the eight-digit unsigned binary
data in CIO 1001 and CIO 1000 is compared to the eight-digit unsigned
binary data in CIO 1501 and CIO 1500 and the result is output to the Arith-
metic Flags. The results recorded in the Greater Than, Equals, and Less Than
Flags are immediately saved to CIO 100.00 (Greater Than), CIO 100.01
(Equals), and CIO 100.02 (Less Than).
3-6-5 SIGNED BINARY COMPARE: CPS(114)
Purpose Compares two signed binary values (constants and/or the contents of speci-
fied words) and outputs the result to the Arithmetic Flags in the Auxiliary Area.
Ladder Symbol
Variations
Applicable Program Areas
Operand Specifications
(0)
(0)
(1)
>
=
<
0.00
1000
1500
100.00
100.01
100.02
S
1
+1 = CIO 1001 S1 = CIO 1000
S2+1 = CIO 1501 S2 = CIO 1500
100.02
Flag status
Result
Comparison
CPS(114)
S
1
S
2
S1: Comparison data 1
S
2: Comparison data 2
Variations Executed Each Cycle for ON Condition CPS(114)
Executed Once for Upward Differentiation Not supported
Executed Once for Downward Differentiation Not supported
Immediate Refreshing Specification !CPS(114)
Block program areas Step program areas Subroutines Interrupt tasks
OK OK OK OK
Area S
1
S
2
CIO Area CIO 0 to CIO 6143
Work Area W0 to W511
Holding Bit Area H0 to H511
Auxiliary Bit Area A0 to A959
Timer Area T0000 to T4095
Counter Area C0000 to C4095
DM Area D0 to D32767
Indirect DM addresses in
binary
@ D0 to @ D32767
Indirect DM addresses in
BCD
*D0 to *D32767

Table of Contents

Related product manuals