11.11 Hardware interrupts
You can configure which events during operation are to trigger a hardware interrupt for the
SIWAREX module. Based on the configuration, the SIWAREX module triggers a hardware
interrupt for specific events/limits. When a hardware interrupt occurs, the CPU interrupts
execution of the user program and processes the associated hardware interrupt OB. The event
that triggered the interrupt is entered by the CPU into the start information of the associated
hardware interrupt OB.
Activation of the hardware interrupts
For the device configuration of the SIWAREX module, activate the hardware interrupts in the
TIA Portal under "Parameters".
Lost hardware interrupt
When an event that triggers a hardware interrupt occurs and a previous event of the same kind
has not yet been processed, no further hardware interrupt is triggered. The hardware interrupt
is lost. This may lead to the "Hardware interrupt lost" diagnostics interrupt, depending on the
parameterization.
No hardware interrupts are activated by default. One result of triggering a hardware interrupt is
that the following two variables are entered in the start information of the associated hardware
interrupt OB:
● EventType: One byte with a set bit
● IChannel: Number of the channel that triggered the hardware interrupt
Table 11-5 Table of event bits
Hardware interrupt Event type bit
Limit 1 OFF → ON 0 0
Limit 1 ON → OFF 1 1
Limit 2 OFF → ON 2 2
Limit 2 ON → OFF 3 3
Communication in SIMATIC S7-300/400/1200/1500
11.11 Hardware interrupts
SIWAREX WP321
112 Operating Instructions, 08/2019, A5E33715669A-AD