Motion.AxesClear
Clears the list of axes associated with the Motion object. After a call to AxesClear, no axes will be associated with the Motion object.
Version History
Introduced in MPX 2.0.
Result
Void
Common Exceptions
|
Error |
Occurs when... |
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 AxesClear()
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 AxesClear();
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
AxisAdd
AxisRemove
Enumerations
State
Overviews
Motion-Axis Mapping Overview
|