Looped scripts are used to cyclically run script code. When a looped script is activated, its code is called with the defined interval.
Looped scripts can advantageously be used to perform calculations and update a tag with a calculated value. Looped scripts can also be used to transfer values between different control systems.
Information:
For more information on JavaScript, please read http://www.w3schools.com/js/default.asp
Web Port scripts can also use methods in .NET provided they are called with a complete search path.
For more information on the .NET framework see
https://msdn.microsoft.com/en-us/library/aa139623.aspx
The following settings can be made for looped scripts:
Setting: | Description: |
*Name | Name of the looped script |
Description | Description of the function of the script and possible parameters |
Interval | The interval in seconds the script is called with |
Active(checkbox) | Enables the Script |
Code | Script Code |
*mandatory parameter |
Create looped scripts
Go to SYSTEM SETTINGS/SCRIPTS/LOOPED SCRIPTS. then NEW SCRIPT. Fill in settings according to table above and press SAVE.
Edit looped scripts
Go to SYSTEM SETTINGS/SCRIPTS/LOOPED SCRIPTS. Click on the desired script in the list. Make the desired changes in the dialog that opens and press SAVE.
Delete looped scripts
Go to SYSTEM SETTINGS/SCRIPTS/LOOPED SCRIPTS. Click on the desired script in the list. In the dialog that opens, press DELETE and then confirm to complete.