![Omron CJ1G-CPUxx Instructions Manual Download Page 289](http://html1.mh-extra.com/html/omron/cj1g-cpuxx/cj1g-cpuxx_instructions-manual_742491289.webp)
268
Comparison Instructions
Section 3-7
3-7-8
BLOCK COMPARE: BCMP(068)
Purpose
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 a range.
Ladder Symbol
Variations
Applicable Program Areas
Operands
B: First word of block
Specifies the beginning of a 32-word block (16 lower/upper limit pairs). B and
B+31 must be in the same data area.
R: Result word
Each bit of R contains the result of a comparison between S and one of the 16
ranges defined the 32-word block. Bit n of R (n = 00 to 15) contains the result
of the comparison between S and the n
th
pair of words.
Operand Specifications
S: Source data
B: First word of block
R: Result word
BCMP(068)
S
B
R
Variations
Executed Each Cycle for ON Condition
BCMP(068)
Executed Once for Upward Differentiation
@BCMP(068)
Executed Once for Downward Differentiation Not supported
Immediate Refreshing Specification
Not supported
Block program areas
Step program areas
Subroutines
Interrupt tasks
OK
OK
OK
OK
Comparison result for S
and range B+30
↔
B+31
Comparison result for S
and range B+2
↔
B+3
Comparison result for S
and range B
↔
B+1
Comparison result for S
and range B+28
↔
B+29
15
0
14
R
1
Area
S
B
R
CIO Area
CIO 0000 to
CIO 6143
CIO 0000 to
CIO 6112
CIO 0000 to
CIO 6143
Work Area
W000 to W511
W0000 to W480
W000 to W511
Holding Bit Area
H000 to H511
H000 to H480
H000 to H511
Auxiliary Bit Area
A000 to A959
A000 to A928
A448 to A959
Timer Area
T0000 to T4095
T0000 to T4064
T0000 to T4095
Counter Area
C0000 to C4095
C0000 to C4064
C0000 to C4095
DM Area
D00000 to
D32767
D00000 to
D32736
D00000 to
D32767
EM Area without bank
E00000 to
E32767
E00000 to
E32736
E00000 to
E32767
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 ...