Siemens SIMADYN D FM 458 User Manual page 64

Application module
Table of Contents

Advertisement

The FM 458 side is accessed using the S7RD/S7WR blocks, at which the
Entering the offset
offset of the data to be transferred is configured, i.e. the position within
for FM 458
the 128 bytes.
When assigning the offset, the number of all of the values located before
the block involved (blocks) and their data type (assigned memory range in
bytes) are taken into account. It is especially important that possible
overlaps are avoided. Gaps between individual values are not permitted
(e.g. for reserve ranges).
However, the offset is not specified in the number of bytes, but as a
multiple of the data type of the associated function block!
Using this technique, it is automatically guaranteed, that the data to be
transferred is available at optimum addresses, i.e. addresses which can
be quickly accessed. However, if the data is unfavorably structured, this
can result in memory cells which cannot be used (refer to the example
diagram below). In order to avoid this, for example, BYTE- and INT types
should be individually distributed over the memory area, but should be
arranged one after the other (consecutively).
Absolute address
Absolute addresses are used in the SIMATIC S7 program which are
obtained from the FM 458 address and the offset of the associated
for SIMATIC-CPU
S7RD/S7WR block in bytes (!):
FM 458 I/O address: The start address, configured in HW Config for the
I/O range of the associated FM 458
Offset = Value at the associated S7RD/S7WR function block
F = Data type length in number of bytes:
Application Module FM 458 - User Manual
6DD1904-0AE0
Edition 12.2001
In this case, the offset, starting from an entry in bytes must be divided
by 2 (for INT types) or by 4 (for REAL/DINT types) and this result must
be configured at the offset input.
Absolute address = (offset x F) + FM 458 I/O address
F = 1
for S7WR_B, S7RD_B
F = 2
for S7WR_I, S7RD_I
F = 4
for S7WR, S7RD, S7WR_D, S7RD_D
Configuring
4-9

Advertisement

Table of Contents
loading

Table of Contents