TITAN-SVX Software Manual
page 43
Rev 4.01
A.14.14. Variable
TITAN-SVX has 100 variables that can be read and set. Variables can also be
used in the standalone programs running on the TITAN-SVX. Variables can be
used to hold values, to perform math operations, and used in the motion control
such as a move to a variable value.
Three commands are available for reading and writing variable values:
VAN
for
selecting the variable number to read or write,
VAR
for reading the variable
value,
VAW
for writing a value to a variable. Reading and writing variable must
first begin with selecting a variable number and then performing reading or
writing operation.
To read a value in the variable number 24, select first the variable number
using
VAN
command and then use variable read command
VAR
Command:
@01:VAN=24
Reply:
#01:VAN=24
Command:
@01:VAR
Reply:
#01:VAR=123
To write a value in the variable number 24, select first the variable number
using
VAN
command and then use the variable command
VAW
to write the
value to a variable.
Command:
@01:VAN=24
Reply:
#01:VAN=24
Command:
@01:VAW=678
Reply:
#01:VAW=678
NOTE:
When using variable read and write command, DO NOT USE
multiple command format using the “;” character. Use single
command format.