
8 GCS Commands
C-863.12 Mercury Controller
MS249E
Version: 1.2.1
203
VAR? (Get Variable Values)
Description:
Gets values of variables.
If VAR? is combined with CPY (p. 134), JRC (p. 169), MEX (p.
176) or WAC (p. 205), the response to VAR? has to be a
single value and not more.
Refer to
“Variables”
(p. 118) for more details on local and
global variables.
Format:
VAR? [{<Variable>}]
Arguments:
<Variable> is the name of the variable to be queried. Refer
to "Variables" (p. 118) for more details on name
conventions.
All global variables present in RAM are listed if <Variable>
is not specified.
Response:
{<Variable>”=”<String>LF}
where
<String> gives the value to which the variable is set.
Notes:
Local variables can be queried using VAR? only when a
macro with local variables is running. See
“Variables”
(p.
118) for details regarding local and global variables.
Example:
See ADD (p. 130) for an example.
VEL (Set Closed-Loop Velocity)
Description:
Set velocity of specified axes.
Format:
VEL {<AxisID> <Velocity>}
Arguments:
<AxisID> is one axis of the controller.
<Velocity> is the velocity value in physical units/s.
Response:
None
Troubleshooting:
Illegal axis identifiers
Notes:
The VEL setting only takes effect when the specified axis is
in closed-loop operation (servo mode ON).
The lowest possible value for <Velocity> is 0.
The velocity can be changed with VEL while the axis is
moving.