EasyManuals Logo

Omron CJ2 CPU UNIT SOFTWARE User Manual

Omron CJ2 CPU UNIT SOFTWARE
670 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 #500 background imageLoading...
Page #500 background image
Appendices
A-16
CJ2 CPU Unit Software User’s Manual
MULTIPLE
COMPARE
MCMP
@MCMP
019 Output Required
TAB L E COM -
PARE
TCMP
@TCMP
085 Output Required
UNSIGNED
BLOCK COM-
PARE
BCMP
@BCMP
068 Output Required
EXPANDED
BLOCK COM-
PARE
BCMP2
@BCMP2
502 Compares the source data to up to 256 ranges (defined by
upper and lower limits) and turns ON the corresponding bit in
the result word when the source data is within a range.
Output Required
AREA RANGE
COMPARE
ZCP 088 Compares the 16-bit unsigned binary value in CD (word con-
tents or constant) to the range defined by LL and UL and out-
puts the results to the Arithmetic Flags in the Auxiliary Area.
Output Required
Instruction Mnemonic Code Symbol/Operand Function Location
Execution
condition
MCMP(019)
S
1
S
2
R
S
1: 1st word of
set 1
S
2: 1st word of
set 2
R: Result word
R
Compares 16 consecutive words with another 16
consecutive words and turns ON the corresponding bit
in the result word where the contents of the words are
not equal.
Comparison
0: Words
are
equal.
1: Words
aren't
equal.
TCMP(085)
S
T
R
S: Source data
T: 1st word of
table
R: Result word
R
Compares the source data to the contents of 16 words
and turns ON the corresponding bit in the result word
when the contents are equal.
Comparison
1: Data
are
equal.
0: Data
aren't
BCMP(068)
S
T
R
S: Source data
T: 1st word of
table
R: Result word
T+3
1
0
14
15
T+29
T+31
T+1
T+2
T+28
T+30
T
S
R
to
to
to
to
Ranges
Upper limit
Source data
Lower limit
1: In range
0: Not in range
Compares the source data to 16 ranges (defined by 16
lower limits and 16 upper limits) and turns ON the
corresponding bit in the result word when the source data
is within the range.
BCMP2(502)
S
T
R
S: Source data
T: 1st word of
block
R: Result word
T+1
T+3
T+2N+1
T
0
1
N
T+2
T+4
T+2N+2
D
S
D+15 max.
Bit
1: In range
0: Not in range
Source data
n=255 max.
Note: A can be less than
or equal to B or
greater the B.
Range 0 A
Range 1 A
Range N A
Range 0 B
Range 1 B
Range N B
ZCP(088)
CD
LL
UL
CD: Compare
data (1 word)
LL: Lower limit of
range
UL: Upper limit of
range

Table of Contents

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Omron CJ2 CPU UNIT SOFTWARE and is the answer not in the manual?

Omron CJ2 CPU UNIT SOFTWARE Specifications

General IconGeneral
BrandOmron
ModelCJ2 CPU UNIT SOFTWARE
CategorySoftware
LanguageEnglish

Related product manuals