Scripts Status and Web Log
In the menu SYSTEM and the bookmark STATUS, you can find the scripts status, which can be useful for scripts troubleshooting – an example output is shown in the picture below:
In the Status column, you can see the web log and restart all server-side scripts. You can use this log from your scripts with the function myscada.logFile (“your text”), which will add a time stamp to your text. This function is embedded in NODE.JS, so you can call it without requiring it.
In the next part, there are reports on the Main script and on Timed scripts. There are three parameters in this report:
- Last start – the last time when the script started
- Executed in – run time of the script
- Status – status of the script execution; if execution fails, the error log is displayed (as shown in the previous picture for the script TS2)