Bt - Block Transfer; Transfer With Offset - Eaton easyE4 series Manual

Hide thumbs Also See for easyE4 series:
Table of Contents

Advertisement

6.1.5.2 BT - Block transfer

General
easyE4 base devices provide 32 Block Transfer function
blocks BT01...BT32.
The block transfer function copies values from one marker
range to a different, contiguous market range when the CPY
(copy) operating mode is enabled.
When the INI (initialization) mode is enabled instead, the
function block copies the content of a marker byte to a dif-
ferent, continuous marker range.
The transfer is carried out bytewise.
Operating principle
Data is transferred from the source address specified at function block input I1 to the
destination address specified at function block input I2. The NO input is used to specify
the size of the data block in bytes.

Transfer with offset

The source address for the copy or initialization is specified at function block input I1,
while the destination address is specified at function block input I2. Within this context,
the numeric value of the operand at runtime will be interpreted as the offset to be added
to marker byte MB01.
Example with a value of "0"
A value 0 at input I1 means that the source data block for the transfer starts at MB01. A
value 10 at I2 means that the destination data block for the transfer starts at MB11.
With the offset information you can address marker ranges
(for example MB380), which you can not address when using
marker operands (direct addressing).
Marker byte example
You wish to transfer the content of marker bytes MB1-MB4 with the content of marker
bytes MB381-MB384 (MD96). A value 0 at input I1 means that the source data block
for the transfer starts at MB01. A value 380 at I2 means that the destination address for
the transfer starts at MB381.
Offset calculation for addressing marker words
Offset = MW (x-1)*2
Offset calculation for addressing marker double words
Offset = MD (x-1)*4
easyE4 11/18 MN050009 EN www.eaton.com
6. Function blocks
6.1 Manufacturer function blocks
311

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents