Technical data

Diagnostics
23.10 System Diagnostics with 'Report System Error'
Programming with STEP 7
Manual, 05/2010, A5E02789666-01 525
23.10.2.5 PROFINET Diagnostic Status
Interface for the PROFINET IO DB
The generated data block depicts the current status of all configured devices. If desired, it can
describe the status of a device more exactly in response to a query from an HMI device. The data
block is dynamically created and depends on the HW configuration. The DB uses the RSE
diagnostics FB (by default, FB49) to access the diagnostics data. This FB enters the current status
of the devices directly in the DB.
Only one HMI device (e.g. OP, MP, PC) can access and modify the DB. If several HMI devices are
connected, simultaneous access is blocked by the variable HMI_ID.
For information on the supported interfaces, refer to the Readme file.
Note
The diagnostics downstream from an IE/PB link is restricted.
Static variable area
Address Name Data Type Description
0 HMI_ID WORD No. of OP that uses the DB (0 = unused)
2 System_No WORD No. of IO system to be evaluated
4 Device_No WORD No. of IO device to be evaluated
6.0 Enable BOOL Retrieves the error from the specified device
6.1 Next_Error BOOL Retrieves the next error from the same
device
6.2 Busy BOOL Busy = 1; evaluation running
6.3 More_Errors BOOL There are more error messages present
7 Device_Status BYTE Status of affected device
8 Offset_System_Header WORD Address of Detail_IO_Sys[n] in the system
being evaluated
10 Offset_System_Array WORD Address of IO_Sys[n] in the system being
evaluated
12 Vendor_ID WORD Vendor ID; filled if supported by the CPU
14 Device_ID WORD Device ID; filled if supported by the CPU
16 Error_Level BYTE Error level 1=IO Device, 2=Module,
3=Submodule, 4=Channel
17 BYTE Reserved
18 Module_No WORD No. of affected module
20 Submodule_No WORD No. of affected submodule
22 Channel_No WORD No. of affected channel
24 Error_Cat DWORD Error category (lexicon ID)
28 Help_Cat DWORD Error category in Help lexicon