5 Function blocks
5.3 BC, data block comparator
Control Relay easy800 11/11 MN04902001Z-EN www.eaton.com 147
The data block ranges do not have the same content. BC01EQ = 0,
MB65 and MD81 (Byte 2) are not identical.
Example 4:
Comparison of marker blocks, out-of-range value error
Two marker blocks are to be compared. Block 1 starts at MD60,
Block 2 starts at MD90. Each block is 30 bytes long.
• Parameters of function block BC01:
The error message “Number of comparison elements exceeds one of the
comparison ranges” is output.
BC01E1 is 1.
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/
01000001011001100011111000101101
MB61
62/
00111110
MD80 (Byte 2) 1097219629/
01000001011001100011111000101101
MB62
102/
01100110
MD80 (Byte 3) 1097219629/
01000001011001100011111000101101
MB63
65/
01000001
MD80 (Byte 4, MSB) 1097219629/
01000001011001100011111000101101
MB64
173/
10101101
MD81 (Byte 1, LSB) 15277/
0011101110101101
MB65
59/
00111011
MD81 (Byte 2) 15277/
0000100010101101
• Comparison range 1: I1 MD60
• Comparison range 2: I2 MD90
• Number of bytes: NO 30
→
The comparison is in byte format. MD90 to MD96 is 28 bytes.
The number of bytes is 30 bytes.