Program processing and
system time
10/10 MN05003004Z-EN
34
Interrupt processing
In the XC100 it is possible to program and parameterize up to
seven interrupt events. Interrupts can be activated by:
• physical inputs I0.0 to I0.3 of the XC-CPU101
• XIOC signal modules with interrupt features
• TIMER_Interrupt.
The interrupt events listed in figure 45 are available:
If an interrupt occurs, the runtime module executes the program
organisational unit (POU) which is linked to the interrupt source.
Execution of the POU is time-monitored. The parameterized cycle
time is used for this cycle time. The interrupts are enabled when
changed to the RUN state and inhibited when changed to the
STOP state. Interrupt sources which are not enabled in the
configuration do not initiate an interrupt. If a POU is not assigned
to an enabled interrupt source, the interrupt is recognised and
executed but without running a POU.
Frequent occurrence of an interrupt during a cycle can cause the
cycle time to time-out and result in a reset being initiated by the
Watchdog.
User interrupts can be inhibited and re-enabled from the program.
The functions “DisableInterrup” and “EnableInterrupt” are
provided for this purpose. A call parameter in the easySoft
CoDeSys determines if an individual interrupt or all interrupts are
enabled or inhibited. Enabling of an inhibited interrupt must be
performed with the same parameter used to inhibit it.
Both the “DisableInterrupt” and “EnableInterrupt” functions are
components of the “XC100_Util.lib” library. This library must – if
not already done so – be integrated into the library manager of the
easySoft CoDeSys.
Interrupt prioritising
In task configuration you can assign a physical interrupt input I0.0,
I0.1, I0.2 or I0.3 to an interuppt channel. Three channels are
available. Channels 1 to 3 have a high priority, channels 4 to 6
have a low priority.
Lower priority interrupts can be interrupted by those with higher
priority.
Figure 45: User events
Содержание XC200 Series
Страница 4: ...II ...
Страница 8: ...10 10 MN05003004Z EN 4 ...
Страница 28: ...10 10 MN05003004Z EN 24 ...
Страница 50: ...10 10 MN05003004Z EN 46 ...
Страница 74: ...10 10 MN05003004Z EN 70 ...