MPI 04.00 Reference >> mpiMotor
mpiMotorDemandModeSet
Declaration
mpiMotorDemandModeSet(MPIMotor motor, MPIMotorDemandMode mode)
Required Header: stdmpi.h
Change History: Added in 03.04.07
Description
mpiMotorDemandModeSet changes the specified motor’s demand mode to the specified mode. For a detailed explanation of how demand modes work, see SynqNet Demand Modes.
This function duplicates part of the functionality of mpiMotorConfigSet, but unlike that function, mpiMotorDemandModeSet allows the demand mode to be changed while the motor’s amplifier is enabled.
motor |
A handle to a motor object |
---|---|
mode |
The new demand mode for the motor. |
Return Values |
---|
MPIMessageOK |
MPIMotorMessageDEMAND_MODE_UNSUPPORTED |
See Also
MPIMotorDemandMode | mpiMotorConfigSet | mpiMotorDemandModeGet | MPIMotorConfig | SynqNet Demand Modes | SynqNet Demand Mode Switching