MPI 04.00 Reference >> mpiMotor

mpiMotorDemandModeTorqueOutput

Declaration

mpiMotorDemandModeTorqueOutput(MPIMotor   motor,
                               double     *output);

 

Required Header: stdmpi.h

Change History: Added in 04.00.

Description

mpiMotorDemandModeTorqueOutput reads the motor’s torque output from the controller and writes it into the value pointed to by output.  mpiMotorDemandModeTorqueOutput is valid for a motor configured for the TORQUE 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
output
A torque demand output value. The valid range is 16-bits (-32767 to 32768).
Return Values
MPIMessageOK
MPIMotorMessageMOTOR_INVALID
Example - Read the motor's torque demand output.

double output;
MPIMotorDemandMode mode;

mpiMotorDemandModeGet(motor, &mode); 

if (mode == MPIMotorDemandModeTORQUE) {
mpiMotorDemandModeTorqueOutput(motor, &output);
}     

See Also

mpiMotorConfigGet | mpiMotorConfigSet | mpiMotorDemandModeGet | mpiMotorDemandModeSet