4 PLC configuration
4.2 System events
76 Modular PLCs XControl: XC-104-…, XC-204-…, XC-303-… 01/23 MN050005EN Eaton.com
Writing a program
▶ Select "Application," select the "Add object" option in the context menu,
and enter (POU) as an object with the name "Param_prog".
▶ You can now enter a program. The program example Param_prog
(Figure 52) increments the variable “value” by the value 1. The
Param_prog is processed if the variable a = TRUE.
Figure 52: Programmed element for event controlled task
Events can only be triggered by Boolean tags.
4.2 System events
A function can be called with the help of a system event. It can be used
when the PLC is started to initialize modules with parameters. The system
events are independent of the task!
Assigning a function to a system event
▶ Add an event handler in the task configuration under the "System
Events" tab.
▶ Select one of the available events (e.g., "StartDone") and enter a function
name (e.g., "AfterStart") in the "Function being called" field.
4. "System Events" - select an event (e.g., "Start") and enter the name of
the POU (e.g., "Power_prog") that should be executed. Check required
Figure 53: Assigning the function to a system event
▶ Double-click on the function name to open the editor and program the
actions that should be taken after the start.