Data And Register Function Blocks; Bc - Block Compare - Eaton easyE4 series Manual

Hide thumbs Also See for easyE4 series:
Table of Contents

Advertisement

6. Function blocks
6.1 Manufacturer function blocks

6.1.5 Data and register function blocks

6.1.5.1 BC - Block compare

306
General
easyE4 base devices provide 32 block comparison function
blocks,
BC01 through BC32. This function block compares values from
two contiguous marker ranges. Moreover, this comparison can be
carried out within the entire marker range (1024 bytes).
Addresses are byte-based, including the range that can only be
addressed with words or double words. (MB513 through
MB1024) → Section "Organizing marker ranges", page 163
Operating principle
The reference data block starts at the source address specified at input I1. This data
block will be compared with the data block that starts at the destination address spe-
cified at I2. You can use constants or operands, in which case the data value of the oper-
and at runtime will be used as the corresponding address.
The NO input is used to specify the size of the data block (number of elements) in bytes.
If the comparison of two data blocks finds that there is no difference between them, the
Boolean output EQ will be set to 1.
The following operands can be used:
Constant NU
l
ACTUAL value ..QV.. of a function block
l
Analog input IA.. or analog output QA..
l
Timer constant
l
Example value 0
A value <0> at input I1 means that the reference data block for the comparison starts at
MB01. A value of <100> at I2 means that the target data block for the compare oper-
ation begins at MB101.
Marker byte example
You wish to compare the content of marker bytes MB11-MB14 with the content of
marker bytes MB381-MB384 (MD96). A value <10> at input I1 means that the ref-
erence data block for the comparison starts at MB11. A value <380> at I2 means that
the destination data block for the comparison starts at MB381.
Marker addresses are always specified using byte addresses.
easySoft 7 no longer supports addresses without an offset.
easyE4 11/18 MN050009 EN www.eaton.com

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents