3 Parameterization
3.3 Parameterizing the IO Controller
80 SIPROTEC 4, Communication Module PROFINET IO, Communication Profile
C53000-L1840-C360-1, Edition 08.2012
✧ In the selected alarm OB, call the SFB54 for copying the alarm information in the data block.
An additional data block, for example DB54, is required as instance DB for calling SFB54. If the block does
not exist yet, you are automatically prompted whether to generate DB54 when you enter the following
example.
CALL SFB54, DB54
MODE := 1 // Writing all data to TINFO and AINFO
F_ID := DW#16#0 // Not relevant if MODE = 1
MLEN := 60 // Length of the AINFO data to be read in bytes
// (26 bytes header, 2 bytes format identifier, 32 bytes data)
NEW := DB140.DBX0.0 // SFB54 return value: TRUE = new alarm data received
STATUS := DB140.DBD2 // SFB54 return value: error code
ID := DB140.DBX6 // SFB54 return value: addr. of the module triggering the alarm
LEN := DB140.DBX10 // SFB54 return value: length of the received AINFO data
TINFO := DB140.TINFO // Destination for task information data
AINFO := DB140.AINFO // Destination for alarm information data
For calling SFB54 with MODE equal to 0 or 2, see literature reference or STEP 7 help file.
✧ Analyze the read alarm data.
com_profinet-io_profile_us.book Page 80 Friday, August 17, 2012 1:40 PM