Basic commands & functions – Xylem System 5000 BASIC Manual User Manual

Page 22

Advertising
background image

Causes the program to pause execution for the specified number of seconds. A decimal number

may be used to specify more specific and smaller time increments (e.g. milliseconds). SLEEP

and DELAY are identical commands.

SLEEP 2.5 REM pauses the program for 2.5 seconds

DELAY 0.25 REM pauses the program for 0.25 seconds

20

DELAY

Used in conjunction with the GETVALUE command, DIFFXX requests a new measurement to

be made on the specified Differential (Analog) channels and stores the value in the given

variable.

GETVALUE DIFF12, var REM stores a new Differential Channel measurement

REM of Analog channels 1-2 in the var variable

GETVALUE DIFF78 SLOT2, s$ REM stores a new Differential Channel

REM measurement of Analog channels 7-8 from

REM Slot 1 in the s$ string variable

DIFFXX

Used in conjunction with the GETVALUE command, DIGITALX requests a new level

measurement to be made on the specified Digital port and stores the value in the given variable.

Used in conjunction with the SETVALUE command, DIGITALX specifies the Level on the

specified digital port to be set to the desired number. Numbers greater than zero will set the port

high (1), and numbers less than or equal to zero will set the port low (0).

GETVALUE DIGITAL4, var REM stores a new Level measurement of digital

REM port 4 from the daughterboard in the var

REM

variable

GETVALUE DIGITAL2 SLOT1, s$

REM stores a new Level measurement of

REM digital port 2 from Slot 1 in the

REM

s$

string

variable

slot$ = “SLOT3”

SETVALUE DIGITAL2, 12.5 REM sets high Digital port 2 on the daughterboard

a = 0

SETVALUE DIGITAL1 slot$, a

REM sets low Digital port 1 on Slot 3

DIGITALX

BASIC COMMANDS & FUNCTIONS

Advertising