Event Detection Of The Cpu 31X-2 As Dp Slave; Evaluating Run-Stop Transitions In The Dp Master/Dp Slave - Siemens SIMATIC S7-300 Series Reference Manual

Cpu specifications
Hide thumbs Also See for SIMATIC S7-300 Series:
Table of Contents

Advertisement

Event Detection
Table 2-8 shows how a DP Master CPU 31x-2 recognizes operating state
transitions of a DP Slave CPU or or data transfer interrupts.
Table 2-8

Event Detection of the CPU 31x-2 as DP Slave

Event
Bus interruption
(short-circuit, plug
disconnected)
DP Master:
RUN → STOP
DP Master:
STOP → RUN
Evaluation in the User Program
Table 2-9 shows you how you can, for example, evaluate RUN-STOP transitions of
the DP master in the DP slave (see Table 2-8).
Table 2-9

Evaluating RUN-STOP Transitions in the DP Master/DP Slave

In the DP Master
Diagnostic Addresses Example:
Master diagnostic address =1023
Slave diagnostic address in the master
system =1022
CPU: RUN → STOP
PLC S7-300, CPU Specifications CPU 312 IFM to CPU 318-2 DP
A5E00111190-01
CPU 31x-2 as DP Master/DP Slave and Direct Communication
What Happens in the DP Slave
S
OB 86 is called and a station failure reported
(incoming event; diagnostic address of the DP slave assigned
to the DP slave)
S
on peripheral access: Call of OB 122
(Peripheral access error)
S
OB 82 is called and Module fault reported
(incoming event;
diagnostic address of the DP slave assigned to the DP slave)
Variable OB82_MDL_STOP=1)
S
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)
Diagnostic Addresses Example:
Slave diagnostic address =422
Master diagnostic address = not relevant
The CPU calls OB 82 with the following
information:
S
OB 82_MDL_ADDR:=422
S
OB82_EV_CLASS:=B#16#39
(incoming event)
S
OB82_MDL_DEFECT:=Module fault
Tip: The CPU's diagnostic data buffer also
contains this information
In the DP Slave
2-23

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents