Server side scripts are based on node.js. The main advantage is that you can use a standard node.js project in the mySCADA environment. However, there are SCADA-specific functions that you should use if you want to read data from PLC, process historical data, or work with any specific part of a mySCADA project. To do so, you should use a mySCADA module, which is a collection of useful functions for performing multiple tasks:
- read/write live data from PLCs
- read/write data from databases
- retrieve live data from CAS Alarms
- retrieve historical data from
- CAS Alarms
- Data-logs
- User actions
To use a mySCADA module in your project, simply include it as follows:
- NOTE: By default, when you open main.js, mySCADA is already included.
Now you can use any mySCADA specific function. List of all available functions can be found in online help located under the source code-editing window: