7HVWLQJ)XQFWLRQV'LDJQRVWLFVDQG)DXOW(OLPLQDWLRQ
S7-300 Automation System, Hardware and Installation: CPU 31xC and CPU 31x
A5E00105492-03
11-21
,QWHUUXSWVRQWKH'30DVWHU
,QWHUUXSWVZLWK6'3PDVWHU
3URFHVVLQWHUUXSWVE\,6ODYHZLWK6)&
If the CPU 31x-2 is used as the DP slave, you can trigger a process interrupt on
the DP master from the user program.
When you call SFC 7 “DP_PRAL”, you trigger an OB40 in the user program on the
DP master. The SFC 7 allows you to forward interrupt information to the DP master
in a double word. This information can then be evaluated in the
OB40_POINT_ADDR variable in the OB40. The interrupt information can be freely
programmed as required. The
6\VWHP6RIWZDUHIRU66\VWHPDQG
6WDQGDUG)XQFWLRQV
- Reference Manual contains a detailed description of SFC 7
“DP_PRAL”.
6HWWLQJXVHUGHILQHGLQWHUUXSWVE\,6ODYHVZLWKWKH6)%
In the CPU 31x-2 operated as a DP slave, you can trigger user-defined interrupts
from the DP master from the user program. SFB 75 "SALRM" is used to send a
process or diagnostic interrupt from a slot in the transfer area (virtual slot) to the
associated DP master from the user program on an intelligent slave. This starts the
associated OB on the DP master.
Interrupt-specific additional information may be sent at the same time. You can
read all this additional information in the DP master using SFB 54 "RALRM".
,QWHUUXSWVZLWKDQRWKHU'3PDVWHU
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.
1RWH
Before you can evaluate diagnostic and process interrupts using the device-
specific diagnostics function on another DP master, you must make sure that:
The DP master is able to store the diagnostic messages, i.e. the diagnostic
messages should be stored in a ring buffer on the DP master. 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.
Содержание CPU 312
Страница 10: ... RQWHQWV S7 300 Automation System Hardware and Installation CPU 31xC and CPU 31x x A5E00105492 03 ...
Страница 76: ... RQILJXULQJ S7 300 Automation System Hardware and Installation CPU 31xC and CPU 31x 5 50 A5E00105492 03 ...
Страница 146: ... RPPLVVLRQLQJ S7 300 Automation System Hardware and Installation CPU 31xC and CPU 31x 9 34 A5E00105492 03 ...
Страница 232: ... ORVVDU S7 300 Automation System Hardware and Installation CPU 31xC and CPU 31x 13 16 A5E00105492 03 ...