beautypg.com

Basic 5000 – Xylem System 5000 User Manual User Manual

Page 82

background image

BASIC 5000

80

The System 5000™ contains a built-in BASIC interpreter (as of firmware version 1.2.0) allowing

for more complex operations on the data logger. Many traditional BASIC commands and features

have been combined with a new subset of operations to create the Basic 5000 language. Basic 5000

is thus able to provide a familiar BASIC base while also providing direct access to the hardware

and operations of the System 5000™. More information along with descriptions and examples of

available commands can be found through the Basic 5000 User Manual, downloadable from the

waterlog.com web site.
All Basic programs can be used as Task Inputs, Task Outputs, Network, and/or Serial programs.

If undefined within the program itself (see Advanced Programming with Symbols in the Basic

5000 User Manual), Basic programs will become available to all four methods upon installation

and are generally labeled after the program’s filename. Their use and appearance may be restricted

or modified via the by editing the Basic program as described below.

• Support for traditional BASIC constructs such as goto, gosub, and line numbers

• Both number and string variables, including single and multi-dimensional arrays

• Built-in string and variable processing functions

• Easy access to COM/Serial Ports using simple PRINT and INPUT commands

• Easy access to Log Files using simple PRINT and INPUT commands

• Structured programming commands including SWITCH-CASE statements, single and multi-

line IF-THEN statements and FOR, WHILE, REPEAT, and DO loops

• User-created subroutine/function support

• Ability to use a Basic program as either an Input or an Output for any Task; multiple Output

Basic programs are allowed on the same Task

• Ability to use a Basic program to communicate with incoming Network connections (e.g. host

simple web pages)

• No file size limit on Basic programs

• No limit on number of Basic programs on the system

• Easily transportable, programs appear as individual files in the Data File Manager

• Ability to perform measurements of any hardware on Inputs (Analog, Digital, etc) as well as

Outputs (4-20mA, Digital, etc)

• Ability to retrieve current and previously measured values of any Task

• Access to system variables including current date and time and all subsets

• Ability to perform complex math operations using built in trigonometric and logarithmic

functions

• Program customization on a per-Task basis

Basic Features