7HVWLQJIXQFWLRQVDQG'LDJQRVWLFV
S7-300 Automation System, Hardware and Installation: CPU 312IFM - 318-2 DP
11-14 A5E00203919-01
(YHQWUHFRJQLWLRQ
The table below shows how CPU 31x-2 operating as DP master recognizes
operating mode transitions of a CPU operating as DP slave or data exchange
interruptions.
Table 11-8 Event recognition by CPUs 31x-2 as the DP master
(YHQW :KDWKDSSHQVLQWKH'3VODYH"
Bus failure interrupt
(short-circuit,
connector unplugged)
• Calls OB 86 with the message 1RGHIDLOXUH(coming event;
diagnostic address of the DP slave assigned to the DP
master)
• with I/O access: Call of OB122 (I/O access error)
DP slave: RUN →
STOP
• Call of OB82 with the message 0RGXOHHUURU
(incoming event; diagnostic address of the DP slave assigned
to the DP master; Variable OB82_MDL_STOP=1)
DP slave: STOP →
RUN
• Call of OB82 with the message 0RGXOH2.
(outgoing event; diagnostic address of the DP-Slave assigned
to the DP master; Variable OB82_MDL_STOP=0)
(YDOXDWLRQLQWKHXVHUSURJUDP
The table below shows how you can, for example, evaluate RUN to STOP
transitions of the DP slave in the DP master.
Table 11-9 Evaluation in the DP master of RUN to STOP transitions by the DP slave
,QWKH'3PDVWHU ,QWKH'3VODYH&38['3
Diagnostic addresses: (Example)
Master diagnostic address =
Slave diagnostic address =
Diagnostic addresses: (Example)
Slave diagnostic address =
Master diagnostic address = irrelevant
The CPU calls OB 82 with the following
information:
• OB 82_MDL_ADDR:=
• OB82_EV_CLASS:=B#16#39 (incoming
event)
• OB82_MDL_DEFECT: = Module error
Tip: The CPU diagnostic buffer also
contains this information
In the user program you should also include
SFC13 "DPNRM_DG" for reading out DP
slave diagnostic data.
← CPU: RUN -> STOP
The CPU generates a DP slave diagnostics
message frame