Debugging functions, diagnostics and troubleshooting
10.7 Diagnostics of DP CPUs
10.7
Diagnostics of DP CPUs
10.7.1
Diagnostics of DP CPUs operating as DP Master
Evaluate diagnostics in the user program
The figure below illustrates the procedure for evaluating diagnostics data in the user
program.
Evaluation with
SFC13 or SFC51
Read OB82_MDL_ADDR and
read OB82_IO_FLAG
(=I/O module ID)
Enter bit 0 of OB82_IO_FLAG as
bit 15 in OB82_MDL_ADDR.
Result: Diagnostic address
"OB82_MDL_ADDR*"
For the diagnostics of the
complete DP slave:
Call SFC13
Enter the "OB82_MDL_ADDR*"
diagnostic address in the
LADDR parameter
Note:
The SFC 13 is asynchronous, i.e. it is
called repeatedly, if required, until it
has changed to BUSY=0 status.
Initial call in OB82,
finishing in cycle
10-18
Diagnostic event
OB82 is called
Evaluation with SFB54
(easiest option)
For the diagnostics of affected components:
Call SFB54
Set MODE=1.
Diagnostic data are entered in
TINFO and AINFO parameters
For the diagnostics of affected modules:
Call SFC51
Enter the "OB82_MDL_ADDR*" diagnostic
address in the INDEX parameter.
Enter the ID W#16#00B3 in the SZL_ID parameter
(=diagnostic data of a module)
S7-300, CPU 31xC and CPU 31x: Installation
Operating Instructions, Edition 08/2004, A5E00105492-05