
Digital modules
4.5 Interrupts of the digital modules
S7-400 Automation System Module Data
104 Reference Manual, Edition 09/2009, A5E00850736-06
Hardware interrupt
A digital input module can trigger a hardware interrupt for each channel at a rising or falling
edge, or both, of a signal status change.
You perform parameter assignment for each channel separately. The parameters can be
changed at any time (in RUN mode in the user program.)
Pending hardware interrupts trigger hardware interrupt processing in the CPU (OB 40 to
OB 47). The CPU interrupts the execution of the user program or the priority classes with low
priority.
In the user program of the hardware interrupt OB (OB 40 to OB 47) you can specify how the
programmable controller is to respond to an edge change. The module acknowledges the
hardware interrupt when the program exits the hardware interrupt OB.
For each channel the digital input module can buffer an interrupt that has not been triggered.
If no run levels of a higher priority class are pending processing, the CPU processes the
buffered interrupts (of all modules) in the order of their occurrence.
Hardware interrupt lost
A "Hardware interrupt lost" diagnostics interrupt is generated, if a successive interrupt occurs
at the same channel before the CPU has processed the previously buffered interrupt.
The CPU does not register any further interrupts at this channel unless it has completed
processing of the stacked interrupts of the same channel.
Interrupt-triggering channels
The interrupt-triggering channels are stored in the local data of the hardware interrupt OBs
(in the start information of the corresponding OB). The start information is two words long
(bits 0 to 31). The bit number is the channel number. Bits 16 to 31 are not assigned.
See also
General information about parameter assignment (Page 216)
Komentáře k této Příručce