
270
Comparison Instructions
Section 3-7
Flags
Precautions
An error will not occur if the lower limit is greater than the upper limit, but 0
(not within the range) will be output to the corresponding bit of R.
Example
When CIO 000000 is ON in the following example, BCMP(068) compares the
content of D00100 with the 16 ranges defined in D00200 through D00231 and
turns ON the corresponding bits in D00300 when S is within the range or OFF
when S is not within the range.
3-7-9
EXPANDED BLOCK COMPARE: BCMP2(502) (CJ1M Only)
Purpose
Compares the source data to up to 256 ranges (defined by 256 lower limits
and 256 upper limits) and turns ON the corresponding bit in the result word
when the source data is within a range. BCMP2(502) is supported by the
CJ1M CPU Units only.
Ladder Symbol
Name
Label
Operation
Error Flag
ER
OFF
Equals Flag
=
ON if the result word is 0000.
(S is not within any of the 16 ranges.)
OFF in all other cases.
S: D00100
R: D00300
to
to
to
to
to
to
to
to
to
to
to
to
to
to
to
to
S: Source data
B:
R:
BCMP2(502)
S
B
R
First word of block
First result word
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 ...