![background image](http://html1.mh-extra.com/html/omron/sysmac-cs1d-cpu/sysmac-cs1d-cpu_reference-manual_742268081.webp)
42
Instruction Functions
Section 2-2
EXPANDED
BLOCK COM-
PARE
BCMP2
@BCMP2
502
(CS1-H, CJ1-H, or
CS1D CPU Unit
Ver. 2.0 or later
only)
CJ1M CPU Unit
(Pre-Ver. 2.0 or
Unit Ver. 2.0 or
later)
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
Required
323
AREA RANGE
COMPARE
ZCP
@ZCP
088
(CS1-H, CJ1-H,
CJ1M, or CS1D
only)
Compares the 16-bit unsigned binary value in CD (word contents or
constant) to the range defined by LL and UL and outputs the results to
the Arithmetic Flags in the Auxiliary Area.
Output
Required
327
DOUBLE AREA
RANGE COM-
PARE
ZCPL
@ZCPL
116
(CS1-H, CJ1-H,
CJ1M, or CS1D
only)
Compares the 32-bit unsigned binary value in CD and CD+1 (word con-
tents or constant) to the range defined by LL and UL and outputs the
results to the Arithmetic Flags in the Auxiliary Area.
Output
Required
330
Instruction
Mnemonic
Code
Symbol/Operand
Function
Location
Execution
condition
Page
BCMP2(502)
S
T
R
S
:
Source data
T
:
1st word of
block
R
:
Result word
T+1
T+3
T+2N+1
S
T
T+2
T+4
T+2N+2
0
1
D
N
D+15 max.
Bit
1: In range
0: Not in range
Source data
Range 0 A
Range 1 A
Range N A
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.
ZCP(088)
CD
LL
UL
CD
: Compare
data (1 word)
LL
: Lower limit of
range
UL
: Upper limit of
range
ZCPL(116)
CD
LL
UL
CD
: Compare
data (2 words)
LL
: Lower limit of
range
UL
: Upper limit of
range
Содержание SYSMAC CS1D-CPU**
Страница 3: ...iv...
Страница 29: ...xxx...
Страница 185: ...146 List of Instructions by Function Code Section 2 4...
Страница 193: ...154 3 35 4 MOVE BIT MOVBC 568 1274 3 35 5 BIT COUNTER BCNTC 621 1276 3 35 6 GET VARIABLE ID GETID 286 1278...
Страница 1389: ...1350 CJ series Instruction Execution Times and Number of Steps Section 4 2...
Страница 1390: ...1351 Appendix A ASCII Code Table ASCII SP Four leftmost bits Four rightmost bits...
Страница 1391: ...1352 ASCII Code Table Appendix A...