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

23-6 XL-BASIC Programming Guide
XL™ SERIES
XL-BASIC Command Summary:
PROGRAM FLOW / CONTROL COMMANDS
COMMAND
DESCRIPTION
REM
Add remarks to the program for documentation.
DELAY(xxxx)
Delay or wait for xxxx milliseconds, 1 to 65000.
GOSUB xxxx
Go to a subroutine at line number ‘xxxx’.
RETURN
Return from the subroutine.
GOTO xxxx
Go to line number ‘xxxx’.
FOR / TO / NEXT
Loop commands
IF / THEN
Conditional program execution
END
End marker for all programs.
SENSOR INPUT COMMANDS
MEASURE(xxxxx)
Take a new measurement from the selected input.
VXON
Turn on the 5.0 volt excitation.
VXOFF
Turn off the 5.0 volt excitation.
P12VXON
Turn on the 12 volt excitation. (Hardware Rev N and newer only)
P12VXOFF
Turn off the 12 volt excitation. (Hardware Rev N and newer only)
SETDIG1
Set digital I/O 1 high.
SETDIG2
Set digital I/O 2 high.
CLEARDIG1
Clear digital I/O 1 to a low state.
CLEARDIG2
Clear digital I/O 2 to a low state.
CURRENTLOOP(a)
Set the 4 to 20 mA current output level to ‘a’.
- H-2191 (57 pages)
- H-223 (9 pages)
- H-264 (16 pages)
- H-310 (40 pages)
- H-312 (38 pages)
- H-3301 (24 pages)
- H-3342 (30 pages)
- H-335 (32 pages)
- H-339 (21 pages)
- H-340-CalKit (6 pages)
- H-340 (12 pages)
- H-340SDI (32 pages)
- H-3521 (57 pages)
- H-3531 FlashLite (76 pages)
- H-3551 (42 pages)
- H-3553 (36 pages)
- H-375 04101 WIND MONITOR-JR (18 pages)
- H-4161 (36 pages)
- H-4191 (21 pages)
- H-424MS V1.0 (25 pages)
- H-424MS V1.1 (22 pages)
- H-4271 (22 pages)
- H-4280 (34 pages)
- H-4400 (7 pages)
- H-4401 (6 pages)
- H-5223 (107 pages)
- STORM 3 UPGRADE (4 pages)
- System 5000 BASIC Manual (54 pages)
- System 5000 User Manual (136 pages)
- DH-21 (112 pages)
- BrazedPlate Heat Exchangers (4 pages)
- Heat Exchangers (8 pages)
- GL500 MULTICHANNEL DATA LOGGER (32 pages)
- 4046 ANALOG TO SDI-12 CONVERTER (7 pages)
- 4015 SDI-12 TO ANALOG CONVERTER (5 pages)
- iRIS-CAM Wastewater Security Camera (11 pages)
- SDI-12 Data Logger iRIS 220, iRIS 320, iRIS 350, iRIS 150, iRIS 300 (111 pages)
- iRIS 150 GPRS DATALOGGERS (53 pages)
- iCE3 GPRS Variant (29 pages)
- GL500-2-1 Data Logger (32 pages)
- 3101 CONDUCTIVITY CONTROLLER (11 pages)
- 3675 pH CONTROLLER (9 pages)
- 378 TEMPERATURE CONTROLLER (9 pages)
- Expert 1400 (16 pages)
- Expert 700 (8 pages)