EasyManua.ls Logo

Omron CP - PROGRAMMING MANUAL 05-2007 - Page 253

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...
220
Comparison Instructions Section 3-6
3-6-3 COMPARE: CMP(020)
Purpose Compares two unsigned binary values (constants and/or the contents of
specified words) and outputs the result to the Arithmetic Flags in the Auxiliary
Area.
Ladder Symbol
Variations
Applicable Program Areas
Operand Specifications
Description CMP(020) compares the unsigned binary data in S
1
and S
2
and outputs the
result to Arithmetic Flags (the Greater Than, Greater Than or Equal, Equal,
Less Than or Equal, Less Than, and Not Equal Flags) in the Auxiliary Area.
CMP(020)
S
1
S
2
S1: Comparison data 1
S
2: Comparison data 2
Variations Executed Each Cycle for ON Condition CMP(020)
Executed Once for Upward Differentiation Not supported
Executed Once for Downward Differentiation Not supported
Immediate Refreshing Specification !CMP(020)
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
Constants #0000 to #FFFF (binary)
&0 to &65535 (unsigned decimal)
Data Registers DR0 to DR15
Index Registers ---
Indirect addressing using
Index Registers
,IR0 to ,IR15
–2048 to +2047 ,IR0 to –2048 to +2047 ,IR15
DR0 to DR15, IR0 to IR15
,IR0+(++) to ,IR15+(++)
,–(– –)IR0 to, –(– –)IR15
(>, >=, =, <=, <, <>)
Unsigned binary
comparison
Arithmetic Flags

Table of Contents

Related product manuals