Up Design Tools Auto-Creation Wizards Drivers Data Emulator Data Tags Alarms Display Pages Multiple Languages Web Server Chart Displays User Security Event Loggers Timers Scripting Basic Spreadsheets SMS & Email Databases Trend Historian System Security

Scripting Basic

 

Contact Us

 

Home
Up

Back

Saturn Basic Script Language

The script system in Saturn offers a comprehensive, object orientated VBA compatible scripting language, fully integrated into the Saturn object structure.  Script routines are mostly event driven from the object to which they are associated.  This makes the generation of specialized script routines very straightforward.

Examples are shown in the following format:

Sub Main
   Dim X As Integer
   Dim Y As Double
   Dim Name$, Age% ' multiple declaration on one line Dim v
End Sub

 

Creating and Editing Scripts

Scripts can be added to objects such as buttons, schedules and pages.  A script could be executed, for example, when a page is viewed or when a button is pressed.  Scripts can also be added to the Saturn ‘root’ object in the tree.  Scripts added to the ‘root’ object can be called from anywhere in the Saturn configuration.
 

A script can be one of three types:

bulletVariable scripts allow variables to be defined. For example, a variable declared in the variable script belonging to a button will be available to any other script belonging to the same button.
NOTE
Variables declared in a variable script in the Saturn ‘root’ object will act as global variables that can be accessed from anywhere in the Saturn configuration.
bulletFunction
bulletSubroutine

More on Scripting Basic

Detailed information is available in the Software Manuals.

 

[ Back ] Home ] Up ]

Copyright © 2006 Hexatec