Diagnostics and maintenance
4.8 Diagnostics in the user program
PROFINET with STEP 7 V15
Function Manual, 12/2017, A5E03444486-AH
111
Evaluate diagnostics in the user program
Diagnostics in the user program
For PROFINET IO, a cross-vendor structure of data records with diagnostics information
applies. Diagnostics information is created only for channels on which a fault has occurred.
With PROFINET, there are two basic ways to obtain diagnostics information.
1. Evaluating the diagnostics status
Read out the diagnostics of your PROFINET IO system using the instructions "DeviceStates"
and "ModuleStates", to localize those stations / modules or station / modules with
maintenance demanded or maintenance required that have faults within a PROFINET IO
system.
The instruction RDREC (read data record) is then used to read various diagnostics data
records directly from the module concerned and thus obtain detailed information about the
error.
All individual errors are collected in a single data record on the interface module.
In your user program, the instruction "RDREC" reads the entire station status asynchronous-
ly directly from the IO device.
Figure 4-19 Example: Evaluating diagnostics data records with the instruction "RDREC"