Specifications
Sicon-8 Technical Manual CircuitWerkes, Inc.
68
Scripting with the Sicontroller Software
The Sicontroller Software
includes scripting that enables
you to perform complex
functions within the software
environment such as control
Sicon-8s located at multiple
sites. You can monitor a Sicon-
8 at one site and perform an
action at another site in the
event that something happens
at the first site. You can also
do complex switching such as take actions while stopping to verify readings or status values as you proceed. If-Then logic
lets you branch actions to account for possible changes that you encounter along the way.
The Sicontroller software supports multiple
scripts. Technically, it is possible to perform every
conceivable action that you might want to do within one
script using the various operators and statements
within the scripting environment, but the Sicontroller
does not require you to use only one script per site.
You can use several, if you like. The Advanced Site
Control Manager is where you can see what scripts are
currently being used. It is also the first stop in creating
a new script or removing an existing one. Right click
on any line to proceed.
Scripting can be quite complex and mistakes can
have unexpected results, so be sure that you fully understand what you have written and be sure to test out your scripts
while watching at least once.
The Syntax and available scripting functions are briefly described below on the next page.
Sample scripts are installed in your Sicontroller software folder in the “scripts” subfolder.
The Sicontroller scripting engine works with two types of functions. The first are “site dedicated functions”. These
are specific variables that have been created to allow you to access specific routines within the software. These functions
form the core of the available tasks that you can perform using scripts. A list of the “site dedicated functions” and their
descriptions follows this section.
The second type of function that you can use are the standard MicroSoft vbScript operators that form the logical
“glue” that binds your script together. A list of the built-in functions can be viewed online at:
http://msdn.microsoft.com/en-us/library/3ca8tfek(VS.85).aspx
The Advanced Site Control Manager (Script Manager Form) is where
you choose which scripts are to be loaded and which ones will be
run. It is also where you open the script editor. Right click on a line
to load/unload scripts.
Several example scripts are included with your Sicontroller
installation in the
scripts folder.