Service and maintenance
10.1 Error and diagnostics messages
SIMATIC MV500
238 Operating Instructions, 03/2021, C79000-G8976-C494-05
SFB 54 "RALRM" returns the following diagnostics information with PROFINET IO in the
"AINFO" parameter (additional alarm information):
Note
Only the bytes 0 to 25 are written for outgoing alarms
Only bytes 0 to 25 of the "AINFO" parameter are written for outgoing alarms. Compare the
meaning of bytes 2 and 3 of "AINFO".
Table 10- 10 Diagnostic information of SFB 54 "RALRM" - "AINFO" parameter
According to PNIO standard
Length of the diagnostics data with an incoming / outgoing alarm.
ID for the alarm type: Diagnostics alarm incoming / diagnostics alarm
outgoing.
Module identification (fixed)
Submodule identification (fixed)
Alarm specification for incoming / outgoing alarm:
• Bits 0 to 10: Sequence number
• Bit 11: Channel diagnostics: 0 (fixed)
• Bit 12: Status of vendor-specific diagnostics
• Bit 13: Status of diagnostics for submodule
• Bit 14: Reserved: 0
Bit 15: Diagnostics status
ID for vendor-specific diagnostics (fixed).
See value with the section "Error
messages (Page 224)"
ID of the error that occurred.
In addition to the event-related readout of the diagnostic data with the SFB 54, you also have
the option of reading out status-related diagnostics data.
You read out status-related diagnostics data using SFB 52 "RDREC".
Proceed as follows to call the SFB 52:
1. Assign the diagnostic address of the optical reader in hexadecimal form to the "ID"
parameter.
2. Assign the value 2 to the "INDEX" parameter.