Communications
configuring
System- and communication configuring D7-SYS - SIMADYN D
3-153
Edition 12.2003
3.16.2
Initiating a process interrupt on SIMATIC-CPU
Function block PAS7 initiates, when triggered, a process interrupt to the
assigned S7-CPU. Supplementary interrupt info of 4 bytes is configured
at the IFO input, which contains net data information.
When an interrupt is initiated, the interrupt OB, which should be
configured in HW Config, is called in the SIMATIC S7-CPU.
The
supplementary interrupt info, taking up 4 bytes, is written into the local
data of the interrupt OBs.
The start address of the input/outputs of the sending FM 458 (to be
configured in HW Config; in the example 512dec = 200hex) is also saved
in the local data of the OB 40.
SIMATIC S7-CPU
(SL program)
FM 458
(CFC program)
P bus
memory
of the FM 458
W #16#200
Info memory
for process
interrupt
(4 Bytes)
OB40
"Hardware interrupt"
//Load alarm source
//(which module?):
L #OB40_MDL_ADDR
T MW20
//Load alarm info:
L
#OB40_POINT_ADDR
T MW22
0:
1:
2:
3:
DW IFO
BO I
PAS7
16#ABCD1234
Trigger (0/1)
DW #16#ABCD1234
512dec = 200hex
2.
Select number of the OB
(e.g. 40)
as well as possibly the.
peripheral address(es)
(Default: 512)
1.
Select interrupt source:
"Process"
(or "Hardware")
via "Edit/Properties" menu
HW Config
Fig. 3-49
Data transfer to the S7-CPU with process interrupt
PAS7