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

Cp1h/cp1l cpu unit
Table of Contents

Advertisement

Comparison Instructions
3-6-11 AREA RANGE COMPARE: ZCP(088)
Purpose
Ladder Symbol
Variations
Applicable Program Areas
Operand Specifications
Description
242
Compares a 16-bit unsigned binary value (CD) with the range defined by
lower limit LL and upper limit UL. The results are output to the Arithmetic
Flags.
ZCP(088)
CD
CD: Comparison Data
LL: Lower limit of range
LL
UL: Upper limit of range
UL
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
OK
Area
CIO Area
Work Area
Holding Bit Area
Auxiliary Bit Area
Timer Area
Counter Area
DM Area
Indirect DM addresses in
binary
Indirect DM addresses in
BCD
Constants
Data Registers
Index Registers
Indirect addressing using
Index Registers
ZCP(088) compares the 16-bit signed binary data in CD with the range
defined by LL and UL and outputs the result to the Greater Than, Equals, and
Less Than Flags in the Auxiliary Area. (The Less Than or Equal, Greater
Than or Equal, and Not Equal Flags are left unchanged.)
Step program areas
OK
OK
CD
CIO 0 to CIO 6143
W0 to W511
H0 to H511
A0 to A959
T0000 to T4095
C0000 to C4095
D0 to D32767
@ D0 to @ D32767
*D0 to *D32767
#0000 to #FFFF (binary)
&0 to &65535 (unsigned decimal)
DR0 to DR15
---
,IR0 to ,IR15
–2048 to +2047 ,IR0 to –2048 to +2047 ,IR15
DR0 to DR15, IR0 to IR15
,IR0+(++) to ,IR15+(++)
,–(– –)IR0 to, –(– –)IR15
Section 3-6
ZCP(088)
Not supported
Not supported
Subroutines
Interrupt tasks
OK
LL
UL

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents