Omron CS1G/H-CPUxxH Instructions Manual page 291

Sysmac cs series; sysmac cj series
Hide thumbs Also See for CS1G/H-CPUxxH:
Table of Contents

Advertisement

Comparison Instructions
Flags
Precautions
Example
S: D00100
3-7-9
EXPANDED BLOCK COMPARE: BCMP2(502) (CJ1M Only)
Purpose
Ladder Symbol
270
Name
Label
Error Flag
ER
Equals Flag
=
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.
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.
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.
BCMP2(502)
Operation
OFF
ON if the result word is 0000.
(S is not within any of the 16 ranges.)
OFF in all other cases.
to
to
to
to
to
to
to
to
to
to
to
to
to
to
to
to
S
S: Source data
B
B:
First word of block
R
R:
First result word
Section 3-7
R: D00300

Advertisement

Table of Contents
loading

Table of Contents