Background scripts are enabled at system startup with continuous background execution. You can define the procedures to be performed:


    1. activation of the supervision system
    2. cyclically, during the period of activity of the supervision system
    3. at the closure of the supervision system


You can use scripts, for example, in all those cases in which it is necessary to perform operations of logical/arithmetic calculation following the variation of the value of a certain measure, or the setting of certain initial parameters at each restart of the system ... The are several application fields.
To activate the background script editor, select the Background Script command from the Configure menu of X Editor.

The script is saved by default with the name Script.bas in the Script folder of the project directory.

 


Caution! If the script is modified, the background script must be restarted to make the changes running, as explained in the section "Starting and stopping the Script Executor"