beautypg.com

Xylem STORM 3 Basic Programming manual User Manual

Page 2

background image

Introduction to Basic Programming.....................................2

3
4
4
4
4
5
5
5
6
6
6
6
7
7
7

Commands and Functions....................................................8

..9

.9
.9
.9

.10

..10
..10
..11

....11

.11
.11
.11

..12
..12

.12

....12

...13

..13

...13

14
14
14
15
15
15
16

ABS (number)....................................................................
ACOS (number).................................................................
AND.....................................................................................
ARRAY.................................................................................
ARRAYDIM (array)..............................................................
ARRAYSIZE (array, number)..............................................
ASC (string).......................................................................
ASIN (number)..................................................................
ATAN (number).................................................................
BREAK..............................................................................
CASE...................................................................................
CEIL (number)..................................................................
CHR$ (number)................................................................
CLEARSDI ( )....................................................................
CLOSE...............................................................................
CONTINUE....................................................................
COS (number)..................................................................
DATETIME.......................................................................
DEFAULT...........................................................................
DELAY..............................................................................
DO.....................................................................................
ELSE...................................................................................
ELSEIF................................................................................
END....................................................................................
ENDIF..................................................................................
END SUB............................................................................

12VSWD......................................................................
5VREF.........................................................................
ANALOGX.................................................................
COUNTERX...............................................................
DIGITALX....................................................................
SDIXN or SDIXNN.....................................................
SENSOR.....................................................................
SENSORRAW............................................................
SENSORFUNCTION..................................................
SYSBATT.....................................................................
SYSTEMP....................................................................

16
16
16
17
17
17
17
17
18
18
18
18
18
18
19
19
19
19
20
20
20
20
21
21
22
22
22
22
23
23
23
24
24
24
24
25
25
25
25
25
26
26
26

GOSUB.............................................................................
GOTO...............................................................................
H377C (number).............................................................
H377F (number))............................................................
HEX$(number)................................................................
IF.......................................................................................
INPUT...............................................................................
INSTR (string, string, number).......................................
INT (number)...................................................................
LABEL..............................................................................
LEFT$ (string, number)..................................................
LEN (string).....................................................................
LINE INPUT.....................................................................
LN (number)....................................................................
LOCAL.............................................................................
LOG (number)................................................................
LOOP...............................................................................
LOWER$ (string)............................................................
LTRIM$ (string)...............................................................
MAX (number, number)................................................
MID$ (string, number, number)....................................

END WHILE.......................................................................
EOF (filenumber).............................................................
ERROR...............................................................................
EULER...............................................................................
EXP (number)...................................................................
FALSE................................................................................
FLOOR ( )...........................................................................
FLUSH................................................................................
FOR.....................................................................................
FRAC (number)................................................................
GETVALUE.........................................................................

CONTENTS

Basic Features.....................................................................
Basic Fundamentals............................................................
Scheduling a Program.......................................................
Listening Programs............................................................
Error Handling...................................................................
Grammar and Examples...................................................
Comments...........................................................................
Variables, Strings and Arrays............................................
Control Statements and Loops........................................
Arithmetic, Comparison and Logical Operators...........
Math Functions...................................................................
Subroutines........................................................................
File and Serial I/O...............................................................
Escape Sequences and Hex Values.................................
String Processing...............................................................