S5-115U Manual
Interrupt Processing
9.3.4
Reading in the Process Signals
The module offers a choice of two bytes for reading in the process signals:
•
The "module address" byte reproduces the status of the inputs (regardless of whether the
inputs have been initialized for interrupt processing).
•
In the "module 1" byte, the bits assigned to the interrupt-initiating input are set
after an interrupt, regardless of the type of initiating edge! (The module has to be initialized
at restart).
Example:
The 434-7 digital input module has starting address 8; it occupies I/O bytes 8 and 9. At startup,
only bit 0 has been enabled for interrupt initiation. The interrupt is to be triggered by a falling
edge. In the event of an interrupt, bytes 8 and 9 have the following values (provided the status of
input 8.0 has not changed after edge change):
Bit address of the input
Status of the inputs (8.0 to 8.7)
x
x
x
x
x
x
x
0
0
7
Module address (byte 8)
Interrupt trigger
0
0
0
0
0
0
0
1
0
7
Module 1 (byte 9)
x=Status of the inputs (0 or 1)
There are two ways of evaluating the input signals with bytes 8 and 9:
•
You can read the status of the inputs with direct I/O access (L PY 8) at any point in your control
program. It is irrelevant whether the status of the inputs is read in the cyclic, time-controlled
or interrupt-processing program.
•
If you have initialized inputs at restart as interrupt-triggering inputs, you must program a spe-
cific interrupt response in OB2:
-
Acknowledge interrupt by reading the "module 1" byte
(in the example: byte 9; L PY 9)
-
Transfer the byte read to the PII (in the example: T IB 9)
-
Evaluate all inputs enabled for interrupt
-
Trigger interrupt response.
After the byte "module 1" (byte 9 in the example) has been loaded into the ACCUM,
is automatically reset on the module! The module is therefore in a position to trigger another
interrupt and so set another bit in this byte! This means that the "module 1" byte
can be read out only once after an interrupt in order to identify the "interrupt trigger".
EWA 4NEB 811 6130-02b
9-7
Содержание SIMATIC S5-115U
Страница 6: ...EWA 4NEB 811 6130 02b ...
Страница 16: ...EWA 4NEB 811 6130 02b ...
Страница 18: ...EWA 4NEB 811 6130 02b ...
Страница 26: ......
Страница 62: ...EWA 4NEB 811 6130 02b ...
Страница 64: ...EWA 4NEB 811 6130 02b ...
Страница 67: ......
Страница 74: ......
Страница 79: ......
Страница 80: ......
Страница 81: ......
Страница 82: ......
Страница 83: ......
Страница 84: ......
Страница 97: ......
Страница 98: ......
Страница 99: ......
Страница 114: ...EWA 4NEB 811 6130 02b ...
Страница 280: ...EWA 4NEB 811 6130 02b ...
Страница 372: ...EWA 4NEB 811 6130 02b ...
Страница 432: ...EWA 4NEB 811 6130 02b ...
Страница 442: ......
Страница 528: ...EWA 4NEB 811 6130 02b ...
Страница 590: ......
Страница 591: ......
Страница 592: ......
Страница 593: ......
Страница 594: ......
Страница 600: ...EWA 4NEB 811 6130 02b ...
Страница 602: ...EWA 4NEB 811 6130 02b ...
Страница 604: ...EWA 4NEB 811 6130 02b ...
Страница 624: ...EWA 4NEB 811 6130 02b ...
Страница 632: ...EWA 4NEB 811 6130 02b ...
Страница 644: ...EWA 4NEB 811 6130 02b ...
Страница 646: ...EWA 4NEB 811 6130 02b ...
Страница 652: ...EWA 4NEB 811 6130 02b ...
Страница 654: ...EWA 4NEB 811 6130 02b ...
Страница 660: ...EWA 4NEB 811 6130 02b ...
Страница 662: ...EWA 4NEB 811 6130 02b ...
Страница 666: ...EWA 4NEB 811 6130 02b ...
Страница 668: ...EWA 4NEB 811 6130 02b ...
Страница 674: ...EWA 4NEB 811 6130 02b ...