238
Comparison Instructions Section 3-6
3-6-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.
Ladder Symbol
Variations
Applicable Program Areas
Operands B: First word of block
Specifies the beginning of a comparison block containing up to 513 words
including up to 256 lower/upper limit pairs). All words must be in the same
data area.
BCMP2(502)
S
B
R
S: Source data
B: First word of block
R: First result word
Variations Executed Each Cycle for ON Condition BCMP2(502)
Executed Once for Upward Differentiation @BCMP2(502)
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
B+31
B+32
B+33
B+34
B+35
B+36
B+37
B+38
B+2N+1
B+2(N+1)
B
B+1
B+2
B+3
B+4
B+5
B+6
07815
Range 15 value A
Range 15 value B
Range 16 value A
Range 16 value B
Range 17 value A
Range 17 value B
Range 18 value A
Range 18 value B
Range N value A
Range N value B
Range 0 value A
Range 0 value B
Range 1 value A
Range 1 value B
Range 2 value A
Range 2 value B
Comparison block
Word
N: 00 to FF hex
(0 to 255)
00 hex Last range "N"
Range 0
Range 1
Range 2
Range 15
Range 16
Range 17
Range 18
Range
data
Range N