323
Comparison Instructions Section 3-7
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.
R: First result word
Each bit of each R word contains the result of a comparison between S and
one of the ranges defined the comparison block. The maximum number of
result words is 16, i.e., m equals 0 to 15.
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
15 014
Comparison result for
S and range 15m + 14
Comparison result for
S and range 15m + n
Comparison result for
S and range 15m
Comparison result for
S and ran