Digital modules
3.10 Digital input module SM 321; DI 16 x 24 VDC; with hardware and diagnostic interrupts
S7-300 Automation System Module data
3-32 Manual, 08/2006, A5E00105505-04
Diagnostic interrupt
When diagnostic interrupts are enabled, incoming error events (initial occurrence) and
outgoing error events (error is cleared) are reported by means of an interrupt.
The CPU interrupts user program execution, and executes diagnostic interrupt OB82.
You can call SFC 51 or 59 in OB82 in the user program to view detailed diagnostic data
output by the module.
Diagnostics data remain consistent until the program exits OB 82. The module
acknowledges the diagnostic interrupt when the program exits OB82.
Hardware interrupt
SM 321; DI 16 x DC 24 V can trigger a hardware interrupt for each channel group at the
positive, negative, or both edges of a signal transition.
Program each channel group separately. The parameters can be changed at any time (in
RUN mode in the user program.)
Incoming hardware interrupts initiate hardware interrupt processing in the CPU (OB 40), and
the CPU interrupts execution of the user program, or of lower priority classes.
You can define the reaction of the PLC to a signal edge transitions in the user program of
hardware interrupt OB 40. The module acknowledges the hardware interrupt when the
program exits the hardware interrupt OB.
The module can write one interrupt per channel to the stack. 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.
(6ES7321-7BH01-0AB0)