. |
Velocity Motion MPX Software Topics > Motion Velocity motion accelerates the axis/axes to a specified velocity. The axes will continue to move at the specified velocity until a new velocity is commanded (by calling the method again with MoveAttrModify attribute). The move is finished by using the Motion.Stop command or by commanding a new velocity motion to zero velocity.
The following table summarizes the arguments that each of the methods take. The Velocity argument is always required but all the other arguments are optional.
If an optional argument is omitted, the value used is taken from the corresponding properties starting with Default in either the Axis or the Motion objects. The Attributes argument modifies the default behavior of each of these motions enabling a wide range of variations of the basic motion to be generated. The Attributes argument does not have a corresponding default property and must be specified for each motion. For exampleBefore a motion object can be used for any motion it must first be mapped to an axis (or axes). This can be done with the following Visual Basic instruction to allow Motion object 0 to use axis 0. Visual Basic
C#
Initially, the acceleration is set zero and needs to be given values before any motion will start. DefaultJerkPercent is set to 66 2/3 at controller initialization, and doesn't necessarily need to be set before commanding a velocity move. The following code sets up the default motion parameters for a velocity move. These instructions only need to be issued once, commonly when the application starts, and are used by all the subsequent motion commands. Visual Basic
C#
The following Visual Basic code will start a velocity move on the axis mapped to motion object 0. Visual Basic
C#
The speed can be changed at any time by issuing the command again using the modify attribute. The acceleration and Jerk Percent used for this change in speed are the defaults set up previously. Visual Basic
C#
The following stop command will bring the axis to a standstill before terminating the velocity motion. The stop command could be used by itself but the Motion.StopTime property would determine the deceleration. Visual Basic
C#
See Also Motion.Velocity
|
| | Copyright © 2001-2021 Motion Engineering |