Representation of the analog values of analog modules
5.9 Interrupts of analog modules
S7-300 Automation System Module data
Manual, 08/2006, A5E00105505-04
5-35
5.9 5.9 Interrupts of analog modules
Introduction
This section desribes the interrupt reaction of analog modules. We distinguish the following
interrupts:
● Diagnostic interrupt
● Hardware interrupt
Note: certain analog modules do not support interrupts, or can only partially "handle" the
interupts described below. For information on modules supporting interrupt functions, refer to
their technical data.
Description of the
STEP 7
blocks
For detailed information on the OBs and SFCs mentioned below, refer to the
STEP 7
Online
Help.
Enabling interrupts
There is no default interrupt setting, i.e. interrupts are disabled if not set accordingly.
Program the interrupt enable parameter in
STEP 7
.
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 with "high or low limit exceeded" trigger
Define a working range by setting a high and low limit. If the process signal (for example, the
temperature) overshoots this working range, the module triggers a hardware interrupt,
provided the interrupt is enabled.
As a result, the CPU interrupts execution of the user program and executes hardware
interrupt OB 40.
In the user program of OB 40, you can define the reaction of the automation system to the
violation of limits.
The module acknowledges the hardware interrupt when the program exits OB 40.