![Siemens SIPROTEC PROFINET IO Manual Download Page 78](http://html.mh-extra.com/html/siemens/siprotec-profinet-io/siprotec-profinet-io_manual_1265444078.webp)
3 Parameterization
3.3 Parameterizing the IO Controller
78
SIPROTEC 4, Communication Module PROFINET IO, Communication Profile
C53000-L1840-C360-1, Edition 08.2012
LEN := MW25
// SFB52 return value: length of the read
// Information in bytes
RECORD := P#DB11.DBX0.0 BYTE 26
// Destination for the read data
In the example, M10.3 = TRUE triggers reading of the unit IDs.
M10.1 and M10.2 are used to check in each subsequent PLC user cycle whether the reading process is still
running or whether an error has occurred.
If the reading process has been completed, M10.0 indicates that the dataset has been read successfully and
that the data are available in the destination data block.
Acyclic data (for example to preset metered values or statistic values) is accomplished with SFB53 in a similar
way to the SFB52 example for reading:
•
Define the structure of the dataset to be written in a data block
•
Specify the data to be written in the data block
Triggering the write job by calling SFB53 and checking if the writing process is finished.
3.3.2.5 Analyzing the Process Alarm
The IO device of the SIPROTEC device defines a process alarm to which you can assign the single-point indi-
cations and double-point indications transmitted via PROFINET IO (see Chapter 2.7).
The process alarm is analyzed in the S7 PLC using the alarm organization blocks OB40 through OB47 and
function block SFB54 ("RALRM"). Depending on the used S7 CPU, not all alarm OBs are available.
The process alarm of the SIPROTEC device is sent via the address of the IO module to which the indication
triggering the alarm is assigned. If indications of different IO modules are linked to the process alarm, the pro-
cess alarm is received via different addresses in the PLC depending on the indication triggering it.
Proceed as follows:
✧
Assign relevant indications to the process alarm via the parameterization (see Figure 2-14 and
Figure 2-15).
✧
If the CPU used offers several OB4x alarm OBs, define for each IO module, which contains an indication
relevant for the process alarm, which alarm OB triggers the process alarm:
Figure 3-27
Selecting the alarm OB
com_profinet-io_profile_us.book Page 78 Friday, August 17, 2012 1:40 PM