List of Statements

 
 
The complete list of Control Basic statements and operators:
 
 
 
 
 
 
 
STATEMENT
TYPE
DESCRIPTONSUMMARY
 
NUMBERS
DATA
Real numbers are handled by the T3000 in full floating point format
 
DAYS
DATA
Days are evaluated as an integer from SUN=0, MON=1, TUE = 2, WED=3... to SAT = 6
 
DATES
DATA
Dates are handled internally by the T3000 as a number from JAN1=1 up to DEC31=365
 
TIMES
DATA
Times are handled internally as hours, but can be typed HH:MM:SS in a program
 
VARIABLES
DATA
Variables are handled internally as real numbers with full floating point notation
 
NOT
OPERATOR
Evaluates to TRUE if the opposite is true. IF NOT HOT evaluates to true when COLD
 
^
OPERATOR
Exponent, raises a number to a power as in 2^2 = 4
 
* /   \  MOD
OPERATOR
Multiplication, division, integer portion of a division, remained of a division
 
+ -
OPERATOR
 Addition and subtraction
 
< > ... etc
OPERATOR
Less than, greater than, and other combinations.
 
 
 
AND
LOGIC
Logical AND, both conditions must be TRUE for the expression to evaluate to TRUE
 
OR
LOGIC
Logical OR, if either expression is TRUE the result is TRUE
 
XOR
LOGIC
Logical Exclusive OR,  evalutates  to TRUE if the two expressions are different
 
ABS
FUNCTION
Absolute Value, returns the positive equivalent of a negative or positive number
 
COMMAND
Causes an alarm, has built in hysterisis to avoid multiple alarms from the same event
 
COMMAND
Selects which panel will annunciate alarms, default is ALL panels
 
AVG
FUNCTION
Average of all numbers enclosed in the brackets following this command
 
CALL
COMMAND
Calls an other program which functions as a sub routine, takes arguments
 
CLEAR
COMMAND
Clears all the local variables in a given program
 
CLOSE
COMMAND
Sets a variable or out put to 0, same as STOP but is more intuitive in some cases
 
CONPROP
FUNCTION
Allows a Basic program to up date the proportional term in a particular PID controller
 
CONRATE
FUNCTION
Allows a Basic program to up date the derivative term in a particular PID controller
 
CONRESET
FUNCTION
Allows a Basic program to up date the integral term in a particular PID controller
 
DALARM
COMMAND
Delayed alarm, allows generation of alarms if a condition is true for a certain time
 
DECLARE
COMMAND
First line of a sub routine to accept the list of arguments from a CALL statement
 
DISABLE
COMMAND
Same as STOP or CLOSE, sets an item to 0
 
DOM
FUNCTION
Day of month, returns the day of the month, starting with 1 on the first of the month
 
DOW
FUNCTION
Day of week, returns a number from 0 to 6 starting with Sun day as zero
 
DOY
FUNCTION
Day of the year, starting with Jan1 as 1
 
ENABLE
COMMAND
Same as START or OPEN, sets the value of an item to 1.
 
END
COMMAND
Ends execution of a program, T3000 assumes and end at the end of each program
 
FOR
COMMAND
Loop control statement, FOR A =1 TO 10 ....PRO GRAM LINES.....NEXT A
 
GOSUB
COMMAND
Branches to sub routine, executes program till next RE TURN statement, and loops back
 
GOTO
COMMAND
Unconditionally branches program execution to an other line
 
HANGUP
COMMAND
Ends a phone call in progress
 
IF
COMMAND
Logical decision, IF HEAT MODE THEN START OUT1
 
IF+
COMMAND
Executes the program line only once when the condition goes from FALSE to TRUE
 
IF-
COMMAND
Opposite of IF+, executes the line only when a condition be comes FALSE
 
INT
FUNCTION
Returns the integer part of an expression
 
INTERVAL
FUNCTION
IF IN TER VAL(0:01:00) executes the following programming once every minute
 
LET
COMMAND
Assignment operator, LET B = 20, has the same effect as B = 20
 
LN
FUNCTION
Natural logarithm of the argument
 
LN-1
FUNCTION
In verse logarithm of the argument
 
MAX
FUNCTION
Maximum of a list of arguments enclosed in brackets following the statement
 
MIN
FUNCTION
Minimum of a list of arguments enclosed in brackets following the statement
 
NEXT
COMMAND
Used in conjunction with the FOR statement to increment the loop counter
 
ON
COMMAND
ON VAR1 GOTO 100 , 200 , 300 , controls program path depending on VAR1
 
ON-ALARM
COMMAND
Evaluates to TRUE when ever there is an alarm in the system.
 
ON-ERROR
COMMAND
Used with PHONE, REMOTE- GET, REMOTE- SET, and RUN- SYSTEM
 
OPEN
COMMAND
Sets an item to 1, OPEN OUT1 is the same as START OUT1
 
PHONE
COMMAND
Phones a number, allows T3000 to dial with a modem for numeric paging
 
POWER -LOSS
FUNCTION
Looks for loss of power, 1 the first time the function is evaluated, o afterwards
 
PRINT
COMMAND
Print strings at a printer connected to the panel
 
PRINT- AT
COMMAND
Print strings at a printer connected to an other panel on the net work
 
REM
COMMAND
Remark, used to add comments to a program
 
REMOTE- GET
COMMAND
10 REMOTE- GET VAR1 = 2IN1, gets a reading from an other site via modem
 
REMOTE-SET
COMMAND
Sets a variable at a remote site via modem.
 
RE TURN
COMMAND
Causes program execution to return from a sub routine
 
RUN-MACRO
COMMAND
Causes a macro command or series of key strokes to be run
 
SCANS
FUNCTION
The number of scans a panel is per forming in one second
 
SET-PRINTER
COMMAND
Tells a T3000 system there is a printer at a particular panel
 
SQR
FUNCTION
Returns the square root of the argument
 
START
COMMAND
Sets the value of an items to 1, same as OUT1 = 1 or OPEN OUT1
 
STATUS
FUNCTION
Status of a panel on the net work, 0 = No Comm, 1 =OK, 2 = no program
 
STOP
COMMAND
Sets the value of an items to 0, same as OUT1 = 0 or CLOSE OUT1
 
TBL
FUNCTION
Looks up a value in a table
 
TIME
FUNCTION
Finds the current time
 
 
 
 
 
TIME-OFF
FUNCTION
Finds the time variable has been false
 
TIME-ON
FUNCTION
Finds the time variable has been true
 
WAIT
COMMAND
Pauses program execution
 
WR-ON
FUNCTION
Finds when a weekly routine is set to come on
 
WR-OFF
FUNCTION
Finds when a weekly routine is set to go off
 
UNACK
FUNCTION
Determines if there are unacknowledged alarms in system
 
USER-A
FUNCTION
Finds the user logged on to the local port
 
USER-B
FUNCTION
Finds the user logged on to the remote port