Debugging functions, diagnostics and troubleshooting
10.7 Diagnostics of DP CPUs
S7-300, CPU 31xC and CPU 31x: Installation
10-24
Operating Instructions, Edition 08/2004, A5E00105492-05
Description of the DP master
configuration
Description of the DP slave
configuration
When you configure the DP master, assign two
different diagnostic addresses for an intelligent
slave, that is, one diagnostic address for slot 0,
and one for slot 2. Functions of those two
addresses:
•
The diagnostic address for slot 0 reports in
the master all events relating to the entire
slave (station representative), for example,
node failure.
•
The diagnostic address for slot 2 is used to
report events concerning this slot. For
example, if the CPU is acting as an intelligent
slave, it returns the diagnostic interrupts for
operating state transitions.
From now on, these diagnostic addresses are
referred to as
assigned to the DP master
.
These diagnostic addresses are used by the DP
master to obtain information about the status of of
DP slave, or about bus interruptions.
When you configure the DP slave, you also
assign it a diagnostic address (in the associated
DP slave project).
Below, this diagnostic address is labeled
assigned to DP slave
.
This diagnostic addresses is used by the DP
slave to obtain information on the status of the
DP master, or on bus interruptions.
Event recognition
The table below shows how CPU 31x-2 operating as DP slave recognized operating state
transitions or data exchange interruptions.
Table 10-13 Event recognition of CPUs 31x-2 operating in DP slave mode
Event
What happens in the DP slave?
Bus interrupt (short-circuit,
connector removed)
•
Calls OB86 with the message Station failure (incoming event;
diagnostic address of the DP slave, assigned to the DP slave)
•
With I/O access: call of OB 122 (I/O access error)
DP master RUN → STOP
•
Calls OB82 with the message Module error (incoming event;
diagnostic address of the DP slave assigned to the DP slave;
Variable OB82_MDL_STOP=1)
DP master RUN → STOP
•
Call of OB82 with the message Module OK. (outgoing event;
diagnostic address of the DP slave, assigned to the DP slave;
Variable OB82_MDL_STOP=0)