EasyManuals Logo
Home>Omron>Controller>CJ - INSTRUCTIONS

Omron CJ - INSTRUCTIONS User Manual

Omron CJ - INSTRUCTIONS
1308 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #314 background imageLoading...
Page #314 background image
3. Instructions
276
CS/CJ/NSJ Series Instructions Reference Manual (W474)
ZCP/ZCPL
Applicable Program Areas
Operands
z Operand Specifications
Flags
Instruction Mnemonic Variations
Function
code
Function
AREA RANGE COMPARE ZCP --- 088
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.
DOUBLE AREA RANGE
COMPARE
ZCPL --- 116
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.
Symbol
ZCP ZCPL
Area
Function block
definitions
Block program areas Step program areas Subroutines Interrupt tasks
SFC action or
transition programs
Usage OK OK OK OK OK OK
Operand Description
Data type Size
CMP CMPL CMP CMPL
CD
ZCP: Comparison data (one word of data)
ZCPL: Comparison data (two words of data)
UINT UDINT 1 2
LL
ZCP: Low limit
ZCPL: Low limit leftmost word number
UINT UDINT 1 2
UL
ZCP: High limit
ZCPL: First word of upper limit
UINT UDINT 1 2
Area
Word addresses
Indirect
DM/EM
addresses
Con-
stants
Registers Flags
Pulse
bits
TR
bits
CIO WR HR AR T C DM EM
@DM
@EM
*DM
*EM
DR IR
Indirect
using IR
TK CF
ZCP: CD, LL, UL
OK OK OK OK OK
OK OK OK OK OK OK
OK
---
OK --- --- --- ---
ZCPL: CD, LL, UL
---
OK
Name Label
Operation
ZCP ZCPL
Error Flag P_ER ON if LL > UL. ON if LL+1, LL > UL+1, UL.
Greater Than Flag P_GT • ON if CD > UL.
• OFF in all other cases.
• ON if CD > UL+1, UL.
• OFF in all other cases.
Greater Than or Equal Flag P_GE • CJ2H (unit version 1.0 to 1.2), CS1-H, CJ1-H,
CJ1M, or CS1D CPU Unit: Held
• CJ2H (unit version 1.3 or later) or CJ2M CPU
Unit:
• ON if CD ≤ LL
• OFF in all other cases.
• CJ2H (unit version 1.0 to 1.2), CS1-H, CJ1-H,
CJ1M, or CS1D CPU Unit: Held
• CJ2H (unit version 1.3 or later) or CJ2M CPU
Unit:
• ON if CD+1, CD ≤ LL+1, LL
• OFF in all other cases.
Equal Flag P_EQ • ON if LL ≤ CD ≤ UL.
• OFF in all other cases.
• ON if LL+1, LL ≤ CD+1, CD ≤ UL+1, UL.
• OFF in all other cases.
ZCP(088)
CD
LL
UL
CD: Comparison data
LL: Lower limit of range
UL: Upper limit of range
ZCPL(116)
CD
LL
UL
CD: First word of comparison data
LL: First word of lower limit
UL: First word of upper limit

Table of Contents

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Omron CJ - INSTRUCTIONS and is the answer not in the manual?

Omron CJ - INSTRUCTIONS Specifications

General IconGeneral
BrandOmron
ModelCJ - INSTRUCTIONS
CategoryController
LanguageEnglish

Related product manuals