![background image](http://html1.mh-extra.com/html/omron/sysmac-cs1d-cpu/sysmac-cs1d-cpu_reference-manual_742268360.webp)
321
Comparison Instructions
Section 3-7
3-7-9
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
BCMP(068)
S
B
R
S
: Source data
B
: First word of block
R
: Result word
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
15
0
14
R
1
Comparison result for S
and range B
↔
B+1
Comparison result for S
and range B+2
↔
B+3
Comparison result for S
and range B+28
↔
B+29
Comparison result for S
and range B+30
↔
B+31
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
Содержание 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...