12-20Using the Trio ActiveX Control
Variable Commands
Trio Motion Technology
GetVr
Description:
Returns the current value of the specified Global variable.
Syntax:
GetVr(Variable, Value)
Parameters:
Return Value:
TrioPC STATUS
.
SetTable
Description:
Sets the specified table variables to the values given in an array.
Syntax:
SetTable(StartPosition, NumberOfValues, Values)
Parameters
Return Value:
TrioPC STATUS
.
SetVariable
Description:
Sets the current value of the specified system variable. To specify different base
axes, the
BASE
command must be used.
Syntax:
SetVariable(Variable, Value
Parameters
Return Value:
TrioPC STATUS
.
short Variable:
Number of the VR variable to read.
double *Value:
Variable in which to store the value read.
Long StartPosition:
Table location for first value in array
Long NumberOfValues:
Size of array to be transferred to Table Memory.
VARIANT Values:
A single numeric value or an array of numeric values
that contain at least NumberOfValues values to be
placed in the Table Memory.
BSTR Variable:
Name of the system variable to write
double Value:
Variable in which the value to write is stored.