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 #318 background imageLoading...
Page #318 background image
3. Instructions
280
CS/CJ/NSJ Series Instructions Reference Manual (W474)
ZCPS/ZCPSL
Applicable Program Areas
Operands
z Operand Specifications
Flags
Instruction Mnemonic Variations
Function
code
Function
SIGNED AREA RANGE COM-
PAR E
ZCPS --- 117
Compares the 16-bit signed binary value in CD
(word contents or constant) to the range defined
by LL and UL and outputs the results to the Arith-
metic Flags.
DOUBLE SIGNED AREA
RANGE COMPARE
ZCPSL --- 118
Compares the 32-bit signed binary value in CD
and CD+1 (word contents or constant) to the
range defined by LL+1, LL and UL+1, UL and out-
puts the results to the Arithmetic Flags.
Symbol
ZCPS ZCPSL
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
ZCPS ZCPSL ZCPS ZCPSL
CD
ZCPS: Comparison data (one word of data)
ZCPSL: Comparison data (two words of data)
INT DINT 1 2
LL
ZCPS: Lower limit
ZCPSL: First word of lower limit
INT DINT 1 2
UL
ZCPS: Upper limit
ZCPSL: First word of upper limit
INT DINT 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
ZCPS: CD, LL,
UL
OK OK OK OK OK
OK OK OK OK OK OK
OK
---
OK --- --- --- ---
ZCPSL: 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+1, CD > UL+1, UL.
• OFF in all other cases.
Greater Than or Equal Flag P_GE • ON if LL ≤ CD.
• OFF in all other cases.
• ON if LL+1, LL ≤ CD+1, CD.
• 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.
Not Equal Flag P_NE • ON if CD < LL.
• ON if CD > UL.
• OFF in all other cases.
• ON if CD+1, CD < LL+1, LL.
• ON if CD+1, CD > UL+1, UL.
• OFF in all other cases.
ZCPS(117)
CD
LL
UL
CD: Comparison data (one word)
LL: Lower limit of range
UL: Upper limit of range
ZCPSL(118)
CD
LL
UL
CD: First word of comparison data
(two words)
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