Timer-triggered Tasks
Timer-triggered Tasks make it possible to execute predefined actions at a configurable interval. The task can be created via the TwinCAT HMI Configuration Toolwindow (1, 2). A unique name (3) and an interval (4) in milliseconds must be configured. The actions and conditions can then be configured (5).

The tasks must then be started using the StartInterval (1) function, selecting the timer name, so that the actions are re-executed after the interval time has elapsed. The Wait function (2) allows you to delay an action. The StopInterval function (3) stops the timer by specifying the timer name.

The tasks are globally valid and can be controlled, for example, by user events (e.g., OnPressed) or global events.