PROFIBUS-DP - Parameterization in DIGSI
81
SIPROTEC PROFIBUS-DP - Communication profile
C53000-L1840-B001-03
Paramterization -
SFC call
For storage of the data, which are to be read with SFC14 and to be written with SFC15,
a data block has to be created.
Then the data exchange can be initiated by calling the system function in the S7 CPU
program.
A description how to use SFC14 and SFC15 in a S7 CPU program you find among
others in the following literature:
Weigmann, J.; Kilian, G.
Decentralization with PROFIBUS-DP/DPV1
Structure, configuration and use of PROFIBUS DP with SIMATIC S7
Siemens AG
Published by: Publicis Corporate Publishing Erlangen
2nd edition, 2003
ISBN: 3-89578-218-1
Continuation of the example:
A data block DB10 which contains an array of 16 word values was created.
The return-value of the function call is stored in MW100.
The start address of the module is 528
dez
= 210
hex
(ref. to Figure 4-11).
The following SFC14 function call is used to read the measured values and counters
into data block DB10:
CALL SFC14
LADDR := W#16#210
RET_VAL := MW100
RECORD := P#DB10.DBX 0.0 WORD 16
Note:
The evaluation of “Data for Specific Manufacturer” (ref. to Figure 4-11) is not sup-
ported by the PROFIBUS-DP slave of the SIPROTEC devices.
The associated edit box in the dialog window for parameterization with the “Universal
module” has to be remain empty.