6. Function blocks
6.2 Interrupt function blocks
The time between the moment the triggering signal is detected and the moment there is
a response at an output is < 1 ms. If multiple interrupts are executed simultaneously,
the times add up.
Measuring the interrupt load
The runtime for each interrupt source is measured in µs. All measured times are added
over a period of 100 ms. After each 100 ms, the total of all times is evaluated and the
time measurement is cleared. If the interrupts used up more than 50% of the computing
time, the application will be stopped.
The <System_CPU_overload> diagnostic message will be generated and ID19 will be
set to 1.
For more information on how diagnostic messages can be called and processed,
please refer to Processing diagnostic messages
Available fixes for high interrupt loads
If the interrupt load becomes too heavy, the following steps can be taken to reduce it:
l Reduce the number of function blocks
l Keep the interrupt routine as short as possible
l Reduce frequencies when using counters
Example of a time-controlled interrupt function block in easySoft 7
Output Q4 needs to be reset after a specific time. This time should be independent from
the main program's cycle time so that the switch-off point in time is always the same.
430
easyE4 11/18 MN050009 EN www.eaton.com