
322
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-10 EXPANDED BLOCK COMPARE: BCMP2(502)
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 only by the
CS1-H, CJ1-H, and CS1D CPU Unit Ver. 2.0 or later, and CJ1M CPU Unit
(Pre-Ver. 2.0 or Unit Ver. 2.0 or later).
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.
R: D00300
S: D00100
to
to
to
to
to
to
to
to
to
to
to
to
to
to
to
to
BCMP2(502)
S
B
R
S: Source data
B: First word of block
R: First result word
Содержание SYSMAC CS Series
Страница 2: ......
Страница 4: ...iv ...
Страница 30: ...xxx ...
Страница 186: ...146 List of Instructions by Function Code Section 2 4 ...
Страница 194: ...154 3 35 4 MOVE BIT MOVBC 568 1273 3 35 5 BIT COUNTER BCNTC 621 1275 3 35 6 GET VARIABLE ID GETID 286 1277 ...
Страница 1320: ...1280 Model Conversion Instructions Unit Ver 3 0 or Later Section 3 35 ...
Страница 1390: ...1350 CJ series Instruction Execution Times and Number of Steps Section 4 2 ...
Страница 1391: ...1351 Appendix A ASCII Code Table ASCII SP Four leftmost bits Four rightmost bits ...
Страница 1392: ...1352 ASCII Code Table Appendix A ...
Страница 1404: ...1364 Revision History ...