6 In-/output configuration and parameterization
6.2 Interrupt processing
Modular PLCs XControl: XC-104-…, XC-204-…, XC-303-… 01/23 MN050005EN Eaton.com 95
Figure 68: "DisableInterrupt" function
EnableInterrupt
With this function, the physical interrupt which was deactivated beforehand
can now be re-enabled as an active interrupt.
Figure 69: "EnableInterrupt" function
Parameterization
The parameterization and prioritization of the interrupt occurs in the “PLC
and Task Configuration” of the CODESYS (activate the “Resources” tab and
call up the “Task configuration l system events” folder). Each interrupt can
be assigned with a POU here.
Example of interrupt processing
A “Basic” task contains a POU “PLC_PRG”. A further POU “Fastprog”
should be processed if an L → H rising edge on the input I0.4 generates an
interrupt.
▶ Create the POUs „FAST_PRG“ as shown in Figure 70.