. |
Point-to-Point Motion MPX Software Topics > Motion Point to point motion will start a move on all the axes mapped to the Motion object from the current command position to a new position. There are three different methods that will start start a point-to-point motion, each taking a different set of arguments and generating different velocity profiles as the axis/axes are moving.
Trapezoidal
SCurve The following table summarizes the arguments that each of the methods take. The Position argument is always required, but all the other arguments are optional.
If an optional argument is omitted then the value used is taken from the corresponding properties starting with Default in either the Axis or Motion objects. The Attributes argument modifies the default behavior of each of these motions enabling a great many 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 needs to 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#
Most default properties are zero at controller initialization and need to be given values before any motion will start. The exception is DefaultJerkPercent which is set to 66 2/3 at controller initialization. The following code sets up the default motion parameters for a trapezoidal 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 trapezoidal move on the axis mapped to motion object 0. Visual Basic
C#
The default motion parameters can be overwritten for specific move using the following type of instruction. Visual Basic
C#
The attributes argument can be used to modify the motion, the following command changes the motion to a relative move. Visual Basic
C#
See Also Motion.Trapezoidal
|
| | Copyright © 2001-2021 Motion Engineering |