beautypg.com

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

Page 3

background image

XL™ SERIES

XL-BASIC Programming Guide 23-3

Standard Input Variables:

Variable

Type

Description

Stage

Read / Write

The last measured stage value is returned. (Only available on the
H-350XL and the H-510XL)

RemStage

Read / Write

The last measured value for the remote stage variable is returned.

LastStage

Read / Write

The stage value measured on the previous scan will be returned. Only
available on the H-350).

PtTemp

Read / Write

The last measured PtTemp value is returned. (Only on the H-350XL)

PSI

Read / Write

The last measured PSI value is returned. (Only on the H-350XL)

AnaX

Read / Write

The last measured value for analog channel X (X = 1 to 4) is returned.

Freq

Read / Write

The last measured freq value is returned.

Digio1

Read / Write

The last measured input state for digital channel 1 is returned.

Digio2

Read / Write

The last measured input state for digital channel 2 is returned.

Counts

Read / Write

The last measured count value is returned.

Totcnt

Read / Write

The last measured total count value is returned.

Countrate

Read / Write

The current count rate on the counter input.

Encodr

Read / Write

The last measured encoder input value is returned.

Tscans

Read / Write

The total scans value is returned.

SdiAP

Read / Write

The last measured value for the selected SDI-12 variable is returned
A = address 0 to 9, P = parameter 1 to 9

FntXX

Read / Write

The last calculated value for function XX is returned. (XX = 01 to 40)

BasicX

Read / Write

The value of one program can be used in other programs. (X = 1 to 5)

Note: Standard input variables are normally read only but may also be assigned a new value

directly in the XL-BASIC program regardless of the variables corresponding hardware
input condition. Be aware that based on system configuration the input variable could be
updated by the system after the variable was set by the XL BASIC program. Writing to
these variables should be avoided or only used in advanced applications. For example, in
the following segment of code, the second line makes the first line useless.

measure(ana1)

measurement analog input 1 now and update its variable.

ana1 = 12.34

Sets variable ana1 to 12.34 regardless of the voltage on analog 1.