                                  Appendix B

Script File Commands Listed by Function

Communications Commands:

ALARMCOM   - Divert all communication commands to the ALARM 
             COMM port.
COMLINK    - Link MAIN COM port to ALARM COM port
FLUSHBUFF  - Clear the COMM buffer of all characters.
GETBYTE    - Get 1 byte of data from the COMM port. Store in 
             numeric variable.
GETCHAR    - Get 1 byte of data from the COMM port. Store in 
             string variable.
HANGUP     - Hangup the modem.
MAINCOM    - Divert all communications commands to the main 
             COMM port.
MODEMCMD   - Issue a command to the modem.
RAWXMIT    - Transmit text to the controller without 
             converting the TRANSMIT STRING CODES.
RECEIVE    - Read data from the controller.
RECSETUP   - Set the time and termination character for the
             receive command.
SENDBYTE   - Transmit a single byte to the controller.
TRANSMIT   - Transmit data to the controller.
XMODEMREC  - Receive a disk file over modem.
XMODEMXMIT - Transmit a disk file over the modem.

Screen Output Commands:

BOX          - Draw an empty box in the current foreground 
               color.
CIRCLE       - Draw an empty circle in the current 
               foreground color.
CLEARMESSAGE - Clear a message window.
CLS          - Clear the screen to the current background 
               color.
COLOR        - Change the current foreground and background 
               colors.
HEADER       - Display a header (or title) at the top of the 
               screen.
LINE         - Draw a line on the screen.
LOADPCX      - Load a 'PCX' format drawing from disk.
LOCATE       - Move the screen cursor to a new location.
MESSAGE      - Display a message window.
PAINT        - Fill an area of the screen with color.
PRINT        - Display text on the screen.
PSET         - Display a single pixel (dot) on the screen.
SAVEPCX      - Save the current screen to a 'PCX' format
               disk file.


                          CONTINUED ON NEXT PAGE



User Input and Keyboard Commands:

ASK        - Ask the user a question and get a YES/NO 
             answer.
GETINPUT   - Display an input window, and get input from the 
             user.

GETKEY     - Wait for the user to press a key.
INFORM     - Display a message and wait for the user to 
             acknowledge it.
INPUT      - Get typed input from the user.
KBFLUSH    - Clear all keystrokes from the keyboard buffer.
SELECTCTRL - Allow the user to select a controller from the
             database.
SELECTFILE - Allow the user to select a filename from a 
             scroll list.

Disk File Commands:

FCLOSE - Close a disk file.
FOPEN  - Open a disk file.
FREAD  - Read data from a disk file.
FWRITE - Write data to a disk file.

High Level Commands:

ALARMOFF     - Disable alarm polling.
ALARMON      - Enable alarm polling.
ALMREPORT    - Show alarm report for current controller.
BACKUP       - Backup the controllers memory to disk.
CONNECT      - Connect with a controller.
DISCONNECT   - Disconnect from a controller.
GETVAL       - Get the value of a controller point or
               variable.
HISTFILE     - Display line charts of history data stored on 
               disk.
HISTPAGE     - Read history data from the current controller
               and display it as line charts.
HISTSTORE    - Read history data from the current controller
               and store it in a disk file.
LOGOFF       - Log off of the current controller.
LOGON        - Log on to the current controller.
MNTREPORT    - Show maintenance report for current 
               controller.
OFFEDIT      - OFFLINE EDIT a controller.
RELOAD       - reload a controllers memory from disk.
VIEWGRAPHIC  - Display a graphic screen.
VIEWSCHEDULE - View (or change) a schedule.


                          CONTINUED ON NEXT PAGE


String Manipulation Commands:

MIDSTRING - Read the value of a character in a string.
NUMTOSTR  - Convert a number to a string.
SETSTRING - Change a single character in a string variable.
STRINGCMP - Compare two strings alphabetically.
STRINGLEN - Determine the number of characters in a string.
STRTONUM  - Convert a string to a numeric variable.

Miscellaneous Commands:

APRINT         - Print text to the alarm printer.
BREAKOFF       - Turn <Ctrl>-Break Checking OFF.
BREAKON        - Turn <Ctrl>-Break checking ON.
ERROROFF       - Disable disconnection on error.
ERRORON        - Enable disconnection on error.
GETDAY         - Store the current day of week in a string 
                 variable.
GETDEFPASS     - Store the current controllers default 
                 password in a string variable.
GETDESCRIPTION - Store the current controllers descriptive 
                 name in a string variable.
GETFILENAME    - Store the current controllers 4 letter 
                 default  filename in a string variable.
GETHOUR        - Store the current hour of day  in a string 
                 variable.
GETLOGON       - Store the current controllers default logon 
                 code in a string variable.
GETMIN         - Store the current minute of the hour in a 
                 string variable.
GETMONTH       - Store the current month of the year in a
                 string variable.
GETNAME        - Store the current controllers actual name 
                 in a string variable.
GETSEC         - Store the current second of the minute in a 
                 string variable.
GETUSERNAME    - Store the current users name in a string 
                 variable.
GETUSERPASS    - Store the current users password in a
                 string variable.
GEYEAR         - Store the current year in a string
                 variable.
MOUSEOFF       - Turn the mouse pointer OFF.
MOUSEON        - Turn the mouse pointer ON.
MPRINT         - Print text to the main printer.
NOSOUND        - Turn the PC speaker OFF.
SOUND          - Turn the PC speaker ON.
WINDOWOFF      - Disable user information boxes.
WINDOWON       - Enable user information boxes.


                          CONTINUED ON NEXT PAGE


Program Control Commands:

ELSE       - Part of an IF/THEN/ELSE block of statements.
END        - Stop execution of the script file.
FOR/NEXT   - Execute a group of commands many times.
GOSUB      - Execute a subroutine.
GOTO       - Jump to the command following a line label.
IF/THEN    - Test a condition and execute commands if TRUE.
PAUSE      - Suspend execution of a script file for a period 
             of time.
RETGRAPHIC - Same as END but redisplay last graphic.
RETURN     - Return from a subroutine.
RUN        - Execute a different script file.
SHELL      - Execute a DOS command.



