Variables as used in Control Basic consist of conventional variables, and points.
LOCAL VARIABLES
There are 26 local variables available to each program. These variables can assume any floating point value. The current value of a local variable can be determined by using the PRINT command (i.e.: PRINT A). Local variables are unique to each program and cannot be used anywhere else in the system. The symbols used for local variables are the characters of the alphabet (i.e.: A,B,C...Z).
POINTS
The 10 point types are variables because they have a value. This value may be accessed, and some points are set through Control Basic. The table below summarizes the fields of each point that can be read or written to:
POINT TYPE
MNEMONIC
READ FIELD
WRITE FIELD
Outputs
OUT1 thru OUT128 Output
Output
Inputs
IN1 thru IN128
Input
Input
Variables
VAR1 thru VAR128 Value
Value
Controllers
CON1 thru CON64
Output
Setpoint Value
Weekly Routines
WR1 thru WR32
Output
n/a
Annual Routines
AR1 thur AR8
Output
n/a
Programs
PRG1 thru PRG128
Status
Status
Control Groups
GRP1 thru GRP32
n/a
n/a
Digital Monitors
DMON1 thru DMON128
On Time
n/a
Analog Monitors
AMON1 thru AMON96
S(Status)
S
Array Elements
AY1[x] thru AY48[x]
Value
Value
All point type variables can be referred to by their label. Some statements and functions would be illogical using certain points. If an illogical operation is attempted, nothing will happen.
Examples:START WR1 (cannot start Weekly Routines in BASIC)