beautypg.com

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

Page 7

background image

XL™ SERIES

XL-BASIC Programming Guide 23-7

COM PORT COMMANDS

OPENCOMx

Open RS-232 Com Port x for Input and Print operations. (x = 1 to 3)

CLOSECOMx

Turn off com port x (x = 1 to 3)

FLUSHCOMx

Clear out the input buffer for Com Port x (x = 1 to 3)

PRINT

Send text and data to com port 1.

PRINT2

Send text and data to com port 2

PRINT3

Send text and data to com port 3

PRINT4

Send text and data to com port 4, this is the RS485 port and it will
turn on automatically as needed. This port has no input options.

INPUT

Get numeric values from com port 1.

INPUT2

Get numeric values from com port 2.

INPUT3

Get numeric values from com port 3.

INPUTDELAY(x)

Set how long to wait for input on the serial ports, or keypad.

DIGITS(x)

Set the number of digits to the right of the decimal point to display.

BUILT IN DISPLAY / KEYPAD COMMANDS

DISPLAY

Send text and data to the local display

DISPCLEAR

Clear the local display.

DISPCURSER(x)

Set the curser position for the local display to ‘x’.

DISPOFF

Turn off the local display.

INKEY

Get a key press input from the local display.

LEDON

Turn on the Error LED.

LEDOFF

Turn off the Error LED.