Technical data
Configuring Messages
16.9 Configuring the 'Reporting of System Errors'
Programming with STEP 7
388 Manual, 05/2010, A5E02789666-01
16.9.7 Generated Blocks
The diagnostic block set by 'Report System Error' (FB with associated instance DB and one or
more shared DB(s) and an FC evaluates the local data of the error OB and reads any additional
diagnostic information from the hardware component that caused the error.
The FB has the following properties:
• Language of generation RSE (Report System Error) (also applies to the blocks listed above)
• Know-how protected (also applies to the blocks listed above)
• Interrupts arriving delayed during run time
• If you double-click on the block, the dialog for setting the "Report System Error" function opens.
User Block
Because the diagnostics FB is know-how protected, you cannot edit it. However, the FB provides
an interface for the user program so that you can access such things as the error status or the
message number.
The block for evaluating in the user program (can be set in the User Block tab of the dialog) is
called in the generated FB with the selected parameters. The following parameters are available:
Name Data Type Comments
EV_C BOOL //Message incoming (TRUE) or outgoing (FALSE)
EV_ID DWORD //Generated message number
IO_Flag BYTE //Input module: B#16#54 Output module: B#16#55
logAdr WORD //Logical address
TextlistId WORD //ID of the text library (default text library = 1)
ErrorNo WORD //Generated error number
Channel_Error BOOL //Channel error (TRUE)
ChannelNo WORD //Channel number
ErrClass WORD //Error Class
HErrClass WORD //Error Class of H Systems
SFC_RET_VAL INT //Return value for SFC 17/18 or SFC 107/108
ExtendedErrorNo WORD //Generated error number of an extended channel error
ExtendedTextlistId WORD //ID of the text library of an extended channel error
ExtendedAddValue DWORD //Additional value for extended channel diagnostics (4 bytes)
If the user FB does not exist yet, it is created by the SFM with the selected parameters.