6. Function blocks
6.2 Interrupt function blocks
If there are multiple interrupt requests present sim-
ultaneously, the first detected interrupt program will be
executed, after which the remaining ones will be executed
based on the corresponding order.
While the interrupt program is being processed, any other
incoming interrupts at the function block inputs of the same
instance will not be detected.
6.2.1.2 Operating principle
A reference value is set at function block input SV. Depending on the operating mode,
the function block will be assigned one or two of device inputs I1 through I8 in the cor-
responding parameters (at least one of them will be set as a counter input in the para-
meters). If the counter input reaches the reference value, the interrupt will be triggered.
The system will switch from the main program to the interrupt program and the latter
will be processed.
Interaction between main program and interrupt program
The states of function block inputs IC_I1 through IC_04 are passed to the interrupt pro-
gram, where they can be processed further as I01 through I04.
Function block outputs IC_Q1 through IC_Q4 can be set from the interrupt program. The
corresponding interrupt program outputs are Q01 through Q04.
Main program
Interrupt program
Figure 187: Input and output states being passed between the main program and interrupt program
406
easyE4 11/18 MN050009 EN www.eaton.com