Alarm, fault and system messages
11.4 I/O device diagnostics
SIMATIC MV420 / SIMATIC MV440
Operating Instructions, 04/2013, A5E02371045-06
349
Diagnostics data record SFB 54
Byte Value Meaning
0 ... 1 according to PNIO standard Block type
2 ... 3 W#16#001A / W#16#0016 Length of the diagnostics data with an incoming / outgoing alarm.
4 ... 5 W#16#0100 Version (fixed)
6 ... 7 W#16#0001 / W#16#000C ID for the alarm type: Diagnostics alarm incoming / diagnostics alarm
outgoing.
8 ... 11 DW#16#00000000 API (fixed)
12 ... 13 W#16#0000 Slot (fixed)
14 ... 15 W#16#0001 Subslot (fixed)
16 ... 19 DW#16#00000300 Module identification (fixed)
20 ... 23 DW#16#00000000 Submodule identification (fixed)
24 ... 25 W#16#Bxxx / W#16#xxx 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
26 ... 27 W#16#0004 ID for vendor-specific diagnostics (fixed).
28 ... 29 Value from the table under error
messages
ID of the error that occurred.
In contrast to events-related reading out of the diagnostics data with SFB 54, there is also
the option of reading out the diagnostics data status-related.
You read out status-related diagnostics data using SFB 52 "RDREC".
Calling SFB 52:
1. You assign the diagnostics address of the reader to the ID parameter in hexadecimal
format.
2. Assign the value 2 to the INDEX parameter.