.

Axis.DemandMode

Property indicates the demand mode for an axis. The demand mode determines the data type(s) transmitted from the controller to the node for servo control.

Version History

Introduced in MPX 2.0.

Arguments

 
Argument Type Description
demand demand The demand output to reset

Type

Mpx.DemandMode

Common Exceptions

 
Error Occurs when...
ObjectNotEnabled The Axis object is currently not enabled.
MotorDemandModeUnsupported The axis cannot support the specified demand mode.

Visual Basic

Syntax

Property DemandMode() As Mpx.DemandMode

Sample Code

 
Try
controller.Axis(0).DemandMode = mpx.DemandMode.Velocity
Catch e As mpx.Exception
If e.Error = mpx.Error.MotorDemandModeUnsupported Then
Console.WriteLine("Velocity Demand Mode Not supported")
End If
End Try


Sample Application

 

C#

Syntax

Mpx.DemandMode DemandMode;

Sample Code

 
try        
{
controller.Axis[0].DemandMode = Mpx.DemandMode.Velocity;
}
catch (Mpx.Exception e)
{
if(e.Error == Mpx.Error.MotorDemandModeUnsupported)
{
Console.WriteLine("Velocity Demand Mode Not supported");
}
}

 

See Also

Enumerations
DemandMode

 

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