Baumer GK473 User Manual

Page 29

Advertising
background image

Manual_GK473_S7_Profibus_EN.doc 29/32

Baumer IVO GmbH & Co. KG

04.05.11

Villingen-Schwenningen,

Germany

4.10 FC 14 – Read target off profile data block

Of course the profiles can also be stored by PLC. This function is meant as example for a possible
profile arrangement. Access is on DB98 where the SPA profiles (1-99) are listed. The pointer allows
immediate access to a defined target. The function is given both SPA identifier and profile number in
order to calculate the offset and to reply the target.
Example:

SPA-identifier = 4

Profile nr.

= 8

The function will now read the target off DB98.DBB 1228.
The formula for calculating the offset is as follows:
(SPA_ID – 1)x400 + (profile number – 1)x4
In case DB98 is adapted to prevailing requirements, the calculation of the offset has to be adapted as
well. If for example only 10 profiles are required, the memory capacity of the block is reduced and also
the offset is calculated in a different way. With 10 profiles for example the formula is as under:

(SPA_ID –1)x40 + (profile number –1)x4

Call function:

CALL FC 14

SPA_ID :=3
Profile number:=1
Target :=MD130

4.11 FC 15 – Automatic identifier (address) designation

This function is giving a broadcast command to all SPAs connected what enables automatic placing of
the SPA identifiers in successive order. To place the identifier, the shaft of the respective SPA must be
turned by at least a half, the direction does not matter.

The function must be given the identifier to start with and the total of SPAs. Thus it is possible to place
the identifier also with SPAs that are connected later by simply naming the next identifier and the
number of additional SPAs to be addressed.

Call function:

CALL FC 15

Start_Adr

:= INT

Anzahl_SPA

:=

INT

Time_Out := BOOL

Fehler

:= BOOL

Busy

:= BOOL



4.12 FC 16 – Set bit parameter

This function is for writing the bit parameters into the SPA. The function applies the memory range
from M50.0 to M54.7. Parameters are given as Bool in case of two options only respectively as an
integer number in case of more than two options. 0 is representing a binary zero, 1 a binary 1, 2 for
binary 10 and 3 for binary 11. Parameters to hide arrows, Offset and target are parameters with more
than two options (example arrows: UP/DOWN /UNI/ OFF).

Data_4_5 makes the SPA identifier entered as integer number what the function will convert
correspondingly.

Advertising