
Testing functions, Diagnostics and Fault Elimination
S7-300 Programmable Controller Hardware and Installation
A5E00105492-01
10-21
10.6.3
Interrupts at the DP master
Interrupts with S7/M7 DP masters
With the CPU 31x-2 as a DP slave, you can trigger a process interrupt with the DP
master from the user program. By calling SFC7 "DP_PRIN", you will trigger an OB
40 in the user program of the DP master. You can forward interrupt information to
the DP master in a double word with the SFC7. This information can be evaluated
in OB 40 in the OB40_POINT_ADDR variable. You will find detailed information on
SFC 7 "DP_PRIN" in the reference manual System software for S7-300/400 -
System and standard functions.
Interrupts with another DP Master
When CPU 31x-2 operates with another DP master, an image of these interrupts is
created in the device-specific diagnostic data of CPU 31x-2. You must post-
process the relevant diagnostic events in the DP master's user program.
Note
In order to be able to evaluate diagnostic interrupts and process interrupts via
device-specific diagnostic data when operating with a different DP master, note
that:
The DP master should be able to store the diagnostic messages, that is, in its ring
buffer. For example, if the DP master can not store diagnostic messages, only the
last incoming diagnostic message would be stored.
In your user program, you must query the relevant bits in device-specific diagnostic
data. Here you must take the PROFIBUS-DP cycle time into account, for example,
to be able to query these bits at least once and in synchronism to bus cycle time.
With an IM 308-C operating as DP master you cannot utilize process interrupts in
device-specific diagnostics, because only incoming events are reported rather than
outgoing events.
Summary of Contents for Simatic S7-300
Page 10: ...Contents S7 300 Programmable Controller Hardware and Installation x A5E00105492 01 ...
Page 16: ...Preface S7 300 Programmable Controller Hardware and Installation 1 6 A5E00105492 01 ...
Page 22: ...Quick Guide S7 300 Programmable Controller Hardware and Installation 2 6 A5E00105492 01 ...
Page 28: ...Product overview S7 300 Programmable Controller Hardware and Installation 3 6 A5E00105492 01 ...
Page 74: ...Configuring S7 300 Programmable Controller Hardware and Installation 4 46 A5E00105492 01 ...
Page 102: ...Wiring S7 300 Programmable Controller Hardware and Installation 6 18 A5E00105492 01 ...
Page 148: ...Commissioning S7 300 Programmable Controller Hardware and Installation 8 36 A5E00105492 01 ...
Page 236: ...Glossary S7 300 Programmable Controller Hardware and Installation 12 16 A5E00105492 01 ...