3.149
EDH0162En1040 – 06/99
MM4005
VA — Set velocity
Usage
IMM
PGM
MIP
Syntax
xxVAnn
Parameters
Description
xx
[int]
— Axis number.
nn
[float]
— Velocity value.
Range
xx
—
1
to
4.
nn
—
1 E
-6
to
the programmed value in SETUP mode
.
Units
xx
— None.
nn
— Preset units in SETUP mode/second.
Defaults
xx
Missing: Error B.
Out of range: Error B.
Floating point: Error A.
nn
Missing: Error C.
Out of range: Error C.
Description
This command sets the velocity value for an axis. Its execution is immedi-
ate, meaning that the velocity is changed when the command is processed,
even while a motion is in progress.
NOTE
Avoid changing the velocity during the acceleration or deceleration peri-
ods. For better predictable results, change velocity only when the axis is
not moving or when it is moving with a constant speed.
Returns
None.
Errors
A
—
Unknown message code.
B
—
Incorrect axis number.
C
—
Parameter out of limits.
Rel. Commands
AC
—
Set acceleration.
PA
—
Move to absolute position.
PR
—
Move to relative position.
Example
2DV |
Read desired velocity of axis #2.
2DV10
|
Controller returns a velocity value of 10 units/sec.
2PA15 |
Move to absolute position 15.
WT500 |
Wait for 500 ms
.
2VA4
|
Set axis #2 velocity to 4 units/sec.
2DV |
Read velocity of axis #2.
2DV4
|
Controller returns a velocity value of 4 units/sec.
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com