.

Axis.Number

The identification number used to access the Axis object from the parent Controller object.

This property cannot be saved to flash memory.

Version History

Introduced in MPX 2.0.

Units

Seconds

Type

UInt32 (read only)

Visual Basic

Syntax

Property Number As UInt32

Sample Code

 

Example 1
x = Controller.Axis(0).Number ' x will be assigned 0
x = Controller.Axis(1).Number ' x will be assigned 1

Example 2
Dim xAxis As MPXCtl.Axis
Dim yAxis As MPXCtl.Axis
Dim xyMotion As MPXCtl.Motion

Set xAxis = Controller.Axis(5)
Set yAxis = Controller.Axis(3)
Set xyMotion = Controller.Motion(2)

' ...

' Use Axis.Number property to change a Motion object's axis
' without having to explicitly specify the axis numbers

xyMotion.Axes = Array(xAxis.Number, yAxis.Number)


Sample Application

 

C#

Syntax

uint Number;

 

Sample Code

 

See Also

Controller Object
Axis

Motion Object
Axes

 

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