Function blocks
163
1SVC 440 795 M1100
The comparison result of the function block BC01 is:
BC01EQ = 0, the data block ranges do not have the same
content.
MB18 and MB68 are not identical.
Example:
Comparison of marker blocks, definition of a marker range
in a different format.
Two marker blocks are to be compared. Block 1 starts at
MB60, Block 2 starts at MD80. Each block is 6 bytes long.
Parameters of BC01 function block:
Comparison range 1:
>I1 MB60
Comparison range 2:>I2 MD80
Number of bytes: >NO 6
Comparison
range 1
Value of marker
range 1 (decimal)
Comparison
range 2
Value of marker
range 2 (decimal)
MB15 45 MB65 45
MB16 62 MB66 62
MB17 102 MB67 102
MB18 65 MB68 57
h
The comparison is in byte format. MD80 has 4 bytes.
Therefore the first two bytes of MD81 are also compared.