.

Controller.AxisCount

The MPX attempts to simplify the object model used by MPI-compatible controllers. In doing so, the MPX Axis object actually wraps four MPI objects: MPIAxis, MPIFilter, MPIMotor, and MPICapture. The motion controller can enable different numbers of each of these objects.

This property represents the number of MPI axes that the controller is currently controlling. MpxAxisCount is provided as a way to simultaneously set the enabled count for each of the four objects that comprise the MPX Axis object.

The motion controller will calculate trajectories on axes zero through (AxisCount - 1). All the other axes are not controlled. The maximum value this property can take is AxisCountMax.

This property is commonly used to reduce the number of axes being controlled, in order to allow the controller's sample rate to be increased.

Version History

Introduced in MPX 2.0.

Units

None

Type

UInt32

Visual Basic

Syntax

Property AxisCount As UInt32

Sample Code

 

x = Controller.AxisCount

Controller.AxisCount = 5


Sample Application

 

C#

Syntax

uint AxisCount;

Sample Code

 

See Also

AxisCountMax
MpxAxisCount

Axis Object

 

       Legal Notice  |  Tech Email  |  Feedback
      
Copyright ©
2001-2021 Motion Engineering