MPI 04.00 Reference >> mpiMotor
mpiMotorDemandModeTorqueOffsetGet
Declaration
MPI_DECL1 MPI_RESULT MPI_DECL2 mpiMotorDemandModeTorqueOffsetGet(MPIMotor motor, double *offset);
Required Header: stdmpi.h
Change History: Added in 04.00.
Description
mpiMotorDemandModeTorqueOffsetGet reads the motor’s torque offset from the controller and writes it into the value pointed to by offset. mpiMotorDemandModeTorqueOffsetGet 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. |
---|---|
*offset |
A pointer to a torque demand offset value. The valid range is 16-bits (-32767 to 32768). |
Return Values |
---|
MPIMessageOK |
MPIMotorMessageMOTOR_INVALID |
Sample Code
Example - Read the motor's torque demand offset. double offset; MPIMotorDemandMode mode; mpiMotorDemandModeGet(motor, &mode);
if (mode == MPIMotorDemandModeTORQUE) { mpiMotorDemandModeTorqueOffsetGet(motor, &offset); }
See Also
mpiMotorConfigGet | mpiMotorConfigSet | mpiMotorDemandModeGet | mpiMotorDemandModeSet