![Omron CJ1G-CPU series Programming Manual Download Page 105](http://html1.mh-extra.com/html/omron/cj1g-cpu-series/cj1g-cpu-series_programming-manual_742489105.webp)
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
greater the B.
Summary of Contents for CJ1G-CPU series
Page 3: ...iv...
Page 5: ...vi...
Page 21: ...xxii Conformance to EC Directives 6...
Page 169: ...148 Task Control Instructions Section 3 32...
Page 203: ...182 Programming Device Operations for Tasks Section 4 4...
Page 253: ...232 Using File Memory Section 5 3...
Page 337: ...316 Other Functions Section 6 11...
Page 347: ......
Page 369: ......
Page 373: ......
Page 379: ......
Page 381: ...360 Revision History...