beautypg.com

Xl™ series – Xylem XL-BASIC Programming Guide User Manual

Page 16

background image

23-16 XL-BASIC Programming Guide

XL™ SERIES

--- Data Card And File Commands —

OPENFILE “filename”

This command opens a file based on the parameter “filename”.
The “filename” parameter specifies if the file will be on the
internal data card or the external data card, and the name of the
file. The format for the filename follows the DOS file format
where a drive is also specified. A drive letter of ‘A’ refers to the
external card and a drive letter of ‘B’ refers to the internal card.
Only one file may be opened at a time. Valid examples are as
follows.

A:\testfile.txt
B:\service.log

WRITEFILE

This command is used to write data or text to the already opened file on
the internal or external data card. This works basically the same as the
PRINT command except the output is to the open file.

CLOSEFILE

Closes the file opened using the OPENFILE command.

--- H-355 Bubbler Commands —

SETBUBBLERT(x) Sets the H-355 bubble rate to value x. The bubble rate may be set between

30 and 120. A value less than 30 will result in a bubble rate of 30, and a
value greater than 120 will result in a bubble rate of 120.

SETPURGEPSI(x)

Sets the H-355 purge pressure in PSI to value x. The PSI value may be set
between 15 and 80. A value less than 15 will result in a purge pressure of
15, and a value greater than 80 will result in a purge pressure of 80.

SETPURGEDUR(x) Sets the H-355 purge duration time in seconds to value x. The duration

value may be set between 30 and 240. A value less than 30 will result in a
purge duration of 30, and a value greater than 240 will result in a purge
duration of 240.

--- Miscellaneous Commands —

POKE(&adrs,&hh)

Poke hex address adrs with hex data hh.

Example:

poke(&1000,&01)

PEEK(&adrs)

Peek hex address adrs

Example:

r = peek(&1000)