254 ● VR DMC-40x0 Command Reference
VR
FUNCTION: Vector Speed Ratio
DESCRIPTION:
The VR sets a ratio to be used as a multiplier of the current vector speed. The vector speed can be
set by the command VS or the operators < and > used with CR, VP and LI commands. VR
takes effect immediately and will ratio all the following vector speed commands. VR doesn't
ratio acceleration or deceleration, but the change in speed is accomplished by accelerating or
decelerating at the rate specified by VA and VD.
ARGUMENTS: VR s,t where
s and t are between 0 and 10 with a resolution of .0001. The value specified by s is the vector ratio
to apply to the S coordinate system and t is the value to apply to the T coordinate system.
s = ? Returns the value of the vector speed ratio for the S coordinate plane.
t = ? Returns the value of the vector speed ratio for the T coordinate plane.
USAGE: DEFAULTS:
While Moving Yes Default Value 1
In a Program Yes Default Format 2.4
Command Line Yes
Controller Usa
e
ALL CONTROLLERS
OPERAND USAGE:
_VRn contains the vector speed ratio of the specified coordinate system, S or T.
RELATED COMMANDS:
VS Vector Speed
EXAMPLES:
#A ;'Vector Program
VMAB ;'Vector Mode
VP 1000,2000 ;'Vector Position
CR 1000,0,360 ;'Specify Arc
VE ;'End Sequence
VS 2000 ;'Vector Speed
BGS ;'Begin Sequence
AMS ;'After Motion
JP#A ;'Repeat Move
#SPEED ;'Speed Override
VR @AN[1]*.1 ;'Read analog input compute ratio
JP#SPEED ;'Loop
XQ#A,0; XQ#SPEED,1 Execute task 0 and 1 simultaneously
Note: VR is useful for feed rate override, particularly when specifying the speed of individual segments
using the operator ‘<’ and '>'.