![Omron CJ1G-CPUxx Instructions Manual Download Page 59](http://html1.mh-extra.com/html/omron/cj1g-cpuxx/cj1g-cpuxx_instructions-manual_742491059.webp)
38
Instruction Functions
Section 2-2
TABLE COM-
PARE
TCMP
@TCMP
085
Output
Required
UNSIGNED
BLOCK COM-
PARE
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
Required
Instruction
Mnemonic
Code
Symbol/Operand
Function
Location
Execution
condition
Page
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 words and turns
ON the corresponding bit in the result word when the contents 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
greater the B.
Summary of Contents for CJ1G-CPUxx
Page 3: ...iv N o t i c e ...
Page 5: ...vi ...
Page 21: ...xxii Conformance to EC Directives 6 ...
Page 35: ......
Page 1131: ...1110 CJ series Instruction Execution Times and Number of Steps Section 4 2 ...