|
Motion.AxisAdd
Adds an axis to Motion object’s axis list.
Version History
Introduced in MPX 2.0.
Result
Void
Arguments
| |
| Argument |
Type |
Description |
| axisIndex |
UInt32 |
The index of the axis object to be added to the axis list. |
|
Common Exceptions
| |
| Error |
Occurs when... |
| Argument |
The specified axis index is either not valid or the axis is already a part of the axis list. |
| MotionMoving |
The motion object is currently in the moving state (State.Moving). The axis list cannot be changed at this time. |
| MotionStopping |
The motion object is currently in the stopping state (State.Stopping). The axis list cannot be changed at this time. |
| MotionStoppingError |
The motion object is currently in the stopping-error state (State.StoppingError). The axis list cannot be changed at this time. |
|
Visual Basic
Syntax
Sub AxisAdd(axisIndex As UInt32)
Sample Code
| |
With controller.Motion(0)
.AxesClear()
.AxisAdd(0) ' Add Axis index 0
.AxisAdd(1) ' Add Axis index 0
End With
|
Sample Application
C#
Syntax
void AxisAdd(uint axisIndex);
Sample Code
| |
controller.Motion[0].AxesClear();
controller.Motion[0].AxisAdd(0); // Add Axis index 0
controller.Motion[0].AxisAdd(1); // Add Axis index 1 |
See Also
Axes
AxesClear
AxisRemove
Enumerations
State
Overviews
Motion-Axis Mapping Overview
|