Visara Master Console Center Scripting Guide User Manual
Page 247
Appendix B Command Syntax
Scripting Guide
247
Command Command
Type
Description Syntax
Variable
Obtains the base directory for the product.
BASEDIRECTORY()==>$DirectoryString
Console
Message
Enables up to 256 SCANB commands to execute
as a group.
BLOCKSCAN(%Wait,*Timeout[,$Array])…ENDB
LOCK
Variable
Returns the character whose value is the ASCII
code given.
CHR(%Number)==>$String
Misc.
Returns the class name for a class number
CLASSNAME(%Class])==>$ClassName
Misc. Returns
the
class
number for a class name
string.
CLASSNUM([$ClassName])==>%Class
Physical
Interface
Control
Switches a CPU’s power ON or OFF. CPUPOWER(%Port,%Operation)
Time
Converts a date string to a date value. DATE($DateString])==>%EpochSeconds
Variable
Subtracts one from a numeric variable’s value.
DEC%Variable
Variable
Decodes a string.
DECODE ($String[,$Key]) ==>$Result
Physical
Interface
Control
Check the status of a device connected to a DI
unit.
DIUNIT(%Port)==>%Status
Physical
Interface
Control
Controls the device connected to a DO unit.
DOUNIT(%Port[,%Operation])==>%DOSwitch
Variable
Encodes a string.
ENCODE ($String[,$Key]) ==>$Result
Flow
Control
Ends the execution of the script thread.
END
Misc.
Returns the error message associated with the
error number.
ERRORMSG(%ErrNum)==>$ErrMsg