The Script code defined in the project database must then be executed by associating it with a specific project event.
Here are some explanatory examples.
How to run a script via a touch button
In the On event of the button it is necessary to select the script to be executed which is located in the Javascript or ST script section.
How to run a script time based
Once the software timer has been defined, it must be associated with the OnTimerExpired event.
The script will be automatically executed every time the software timer reaches the preset value.