EasyManuals Logo
Home>Omron>Controller>CJ1M-CPU series

Omron CJ1M-CPU series Programming Manual

Omron CJ1M-CPU series
383 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 #105 background imageLoading...
Page #105 background image
84
Comparison Instructions Section 3-5
TABLE
COMPARE
TCMP
@TCMP
085
Output
Required
UNSIGNED
BLOCK
COMPARE
BCMP
@BCMP
068
Output
Required
EXPANDED
BLOCK COM-
PARE
BCMP2
@BCMP2
502
(CJ1M only)
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
Required12
7
Instruction
Mnemonic
Code
Symbol/Operand Function Location
Execution
condition
S: Source data
T: 1st word of
table
R: Result word
TCMP(085)
S
T
R
Comparison
1: Data are
equal.
0: Data aren't
equal.
R
Compares the source data to the contents of 16 consecutive words
and turns ON the corresponding bit in the result word when the
contents of the words are equal.
S: Source data
T: 1st word of
table
R: Result word
BCMP(068)
S
T
R
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.
to T+3
1
0
14
15
to T+29
to T+31
to T+1
T+2
T+28
T+30
T
S
Ranges
1: In range
0: Not in range
R
Lower limit Upper limit
Source data
S: Source data
T: 1st word of
block
R: Result word
BCMP2(502)
S
T
R
T+1
T+3
T+2N+1
S
T
T+2
T+4
T+2N+2
0
1
D
D+15 max.
Bit
1: In range
0: Not in range
Source data
Range 0 A
Range 1 A
Range N A
N
n=255 max.
Range 0 B
Range 1 B
Range N B
Note: A can be less than
or equal to B or
g
reater the B.

Table of Contents

Other manuals for Omron CJ1M-CPU series

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Omron CJ1M-CPU series and is the answer not in the manual?

Omron CJ1M-CPU series Specifications

General IconGeneral
BrandOmron
ModelCJ1M-CPU series
CategoryController
LanguageEnglish

Related product manuals