User Manual
Function blocks
137
08/04 AWB2528-1423GB
The comparison result of the function block BC01 is:
BC01EQ = 0, the data block ranges do not have the same
content.
MB65 and MD81 (Byte 2) are not identical.
Example:
Comparison of marker blocks, range violation error.
Two marker blocks are to be compared. Block 1 starts at
MB60, Block 2 at MB90. Each block is 30 bytes long.
Parameters of BC01 function block:
Comparison range 1:
>I1 MD60
Comparison range 2:>I2 MD90
Number of bytes: >NO 30
Comparison
range 1
Value of
marker range 1
(decimal/
binary)
Comparison
range 2
Value of marker range 2 (decimal/
binary)
MB60 45/
00101101
MD80 (Byte 1, LSB) 1097219629/
0100000101100110001111100010
1101
MB61
62/
00111110
MD80 (Byte 2) 1097219629/
0100000101100110001111100010
1101
MB62 102/
01100110
MD80 (Byte 3) 1097219629/
0100000101100110001111100010
1101
MB63
65/
01000001
MD80
(Byte 4, MSB)
1097219629/
0100000101100110001111100010
1101
MB64 173/
10101101
MD81
(Byte 1, LSB)
15277/
0011101110101101
MB65
59/
00111011
MD81 (Byte 2) 15277/
0000100010101101
h
The comparison is in byte format. MD90 to MD96 is 28
bytes. The number of bytes is 30 bytes.