MPI 04.00 Reference >> mpiMotor

mpiMotorDemandModeVelocityOutput

Declaration

mpiMotorDemandModeVelocityOutput(MPIMotor   motor,
                                 double     *torqueOutput,
                                 double     *velocityOuput);

 

Required Header: stdmpi.h

Change History: Added in 04.00.

Description

mpiMotorDemandModeVelocityOutput reads the motor’s torque and velocity outputs from the controller and writes it into the values pointed to by torqueOutput and velocityOutput.  mpiMotorDemandModeVelocityOutput is valid for a motor configured for the VELOCITY demand mode.

SynqNet drives will support TORQUE and possibly VELOCITY mode, depending on the drive.  SynqNet RMBs do not support TORQUE or VELOCITY demand mode.

motor
A handle to a motor object.
torqueOutput
A torque demand output value. The valid range is 16-bits (-32767 to 32768).
velocityOutput
A velocity demand output value. The valid range is 16-bits (-32767 to 32768).
Return Values
MPIMessageOK
MPIMotorMessageMOTOR_INVALID
Example - Read the motor's torque and velocity demand output.

double torqueOutput;
double velocityOutput;
MPIMotorDemandMode mode;

mpiMotorDemandModeGet(motor, &mode); 
if (mode == MPIMotorDemandModeVELOCITY) { mpiMotorDemandModeTorqueOutput(motor, &torqueOutput, &velocityOutput); }

See Also

mpiMotorConfigGet | mpiMotorConfigSet | mpiMotorDemandModeGet | mpiMotorDemandModeSet