S5-115U Manual
Interrupt Processing
9
Interrupt Processing
In this chapter you will learn the following:
•
Which blocks are designed for handling process interrupts in the S5-115U
•
How a process interrupt is intitiated
•
What happens "internally" during interrupt processing
•
The important points about simultaneous use of timed interrupts (timed-interrupt OBs)
•
How to calculate the response times to a process interrupt.
In addition, Section 9.3 shows how to start up the 434-7 digital input module (with process
interrupt).
9.1
Programming Interrupt Blocks
You can use interrupt-initiating modules in the S5-115U (e.g. signal preprocessing modules or the
434-7 digitial input module). These modules activate the CPU over an interrupt line in the I/O bus
(S5 backplane bus). The CPU distinguishes between A, B, C or D interrupts depending on which
interrupt line has been activated.
Each of these interrupts causes the operating system of the CPU to interrupt the cyclic or time-
controlled program and to call an interrupt OB:
OB2 in the case of interrupt A (interrupt A is triggered by the 434-7 DI module, by some CPs or by
IPs)
OB3 in the case of interrupt B (interrupt B is triggered by some CPs or by IPs)
OB4 in the case of interrupt C (interrupt C is triggered by some CPs or by IPs)
OB5 in the case of interrupt D (interrupt D is triggered by some CPs or by IPs)
What Interrupts What and Where?
As soon as the current cycle has been interrupted, i.e. while the CPU is processing an interrupt OB,
further interrupts are automatically disabled. A running interrupt program can therefore not be
interrupted.
If several interrupts are pending simultaneously, the priority is determined as follows:
Highest priority:
Interrupt A
Interrupt B
Interrupt C
Lowest priority:
Interrupt D
Interrupts A to D have higher priority than timed interrupts (OB10 to 13). The priority of OB6 in
relation to interrupts A to D can be programmed (see Section 7.4.4).
An interrupt A, B, C or D interrupts the cyclic or time-controlled program after each operation.
Exception: the TNB operation can be interrupted after every word in the case of CPUs 941, 942
and 943. The execution time of the TNB operation in the case of CPU 944 is so short that
interruptibility has been dispensed with.
Integral function blocks and operating system routines can only be interrupted at specified points
by an interrupt A (B, C, D) (cannot be influenced!).
If you have not programmed an interrupt OB, the cyclic or time-controlled program will continue
immediately after the interrupt. If further interrupts occur during interrupt processing (edge is
enough!), the CPU stores one of these interrupts per interrupt line! Prerequisite for detecting
another interrupt is that the interrupt-initiating edges are separated by an interval of at least
12
µ
s! The subsequent order of processing the interrupts follows the interrupt priority described
above.
EWA 4NEB 811 6130-02b
9-1
Содержание 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 ...