10-34
2000-OSM, F1
Example:
0010 AREA! = SD_TOTAL_AREA
Returns the total measured Sim Dis area.
UCT TO TIME Conversion Routine
Description:
Converts time expressed as UCT array to time as time and date.
Syntax:
UCT_TO_TIME$(T!)
Example:
0010 DIM T!(2)
0020
TIME_UCT(T!)
0030 TM$ = UCT_TO_TIME$(T!)
0040 LPRINT TM$
VALUE Function
Description:
Returns a floating point number that is the result of a conversion of the string
passed.
Syntax:
VAL(string$)
Comments:
string$
is any string expression. If a valid conversion cannot be performed, VAL
returns zero. Leading non-numeric characters will cause an invalid conversion.
Trailing blanks without a decimal point are interpreted as decimal places.
Examples:
0010 A! = VAL( -10)
The floating point variable A! becomes -10.
0010 A! = VAL(10 )
The floating point variable A! is assigned the value 100000.
0010 A! = VAL(10. )
The floating point variable A! is assigned the value 10.
VALVE Command
Description:
Turns valve On or Off.
Syntax:
VALVE(valve number%,state%)
Comments:
valve number%
ranges from 1 to the total number of valves, which may
vary from 2 to 12.
state%
0 = valve Off, 1 = valve On.
Example:
0010 VALVE(2,0)
This command turns valve 2 Off.
WRITE DIGITAL OUTPUT Command
Description: Specifies the state of alarm type contact closures.
Syntax:
WDO(channel%,state%)
Comments:
channel%
is the output channel (1-96).
state%,
where state = 0 is the normal condition and state = 1 is the alarm condition;
whether or not there is contact closure is determined by the hardware setup.
Example:
0010 FOR I = 1 TO 96
0020
WDO(I,0)
0030 NEXT I
All digital outputs, if they exist, are put in normal state.
WRITE TREND OUTPUT Command
Description:
Sets the specified Trend output to the percentage level desired, by writing
an integer between 0 and 4095.
Syntax:
WTO(channel%,value%)