MPI 04.00 Reference >> mpiMotor
mpiMotorDemandModeTorqueOffsetSet
Declaration
mpiMotorDemandModeTorqueOffsetSet(MPIMotor motor, double offset);
Required Header: stdmpi.h
Change History: Added in 04.00.
Description
mpiMotorDemandModeTorqueOffsetSet writes the motor’s torque offset to the controller. mpiMotorDemandModeTorqueOffsetSet is valid for a motor configured for the TORQUE demand mode. The motor offset demand is useful for open-loop control of drives in torque mode.
SynqNet drives will support TORQUE and possibly VELOCITY mode, depending on the drive. SynqNet RMBs do not support TORQUE demand mode.
motor |
A handle to a motor object |
---|---|
offset |
A torque demand offset value. The valid range is 16-bits (-32767 to 32768). |
Return Values |
---|
MPIMessageOK |
MPIMotorMessageMOTOR_INVALID |
Example - Write the motor's analog demand offset. double offset = 200; MPIMotorDemandMode mode;
mpiMotorDemandModeGet(motor, &mode);
if (mode == MPIMotorDemandModeTORQUE) { mpiMotorDemandModeTorqueOffsetSet(motor, offset); }
See Also
mpiMotorConfigGet | mpiMotorConfigSet | mpiMotorDemandModeGet | mpiMotorDemandModeSet