Visara Master Console Center Scripting Guide User Manual
Page 249
![background image](https://www.manualsdir.com/files/808700/content/doc249.png)
Appendix B Command Syntax
Scripting Guide
249
Command Command
Type
Description Syntax
File
Reads values from an open file into variables.
FREAD(%FielNum,var1[,var2,…,[varn]…])==>%
QtyRead
File
Renames a file.
FRENAME($CurrentName,$NewName)==>%
Success
File
Moves an open file’s current record pointer to the
beginning.
FREWIND(%FileNum)
File
Moves an open file’s current record pointer to a
byte offset.
FSEEK(%FileNum,%Position)==>%Success
File
Writes expression to an open file. FWRITE(%FileNum,expre[,%NEWLINE])==>%S
uccess
Variable
Obtains the current value of the given
environment variable.
GETENV($Variable)==>$Value
Variable
Obtains the system process identifier for this
script.
GETPID()==>%ProcessId
Flow
Control
Immediately transfers script execution to the
specified label and waits until the called routine
finishes execution.
GOSUB*Label
Flow
Control
Immediately transfers script execution to the
specified label.
GOTO*Label
Variable
Converts an integer to a hex string.
HEXSTR(%Number)==>$Hex
Physical
Interface
Control
Reads the current humidity from a sensor unit.
HUMID(%Port)==>%Humidity
Alerting
Changes icon characteristics.
ICON(%Status[,$Message[,%Class[,$Name]]])
Alerting
Returns an icon’s current message. ICONMSG([%Class[,$Name]])==>$Message