MPI 04.00 Reference >> mpiMotor
mpiMotorDemandModeAnalogOffsetSet
Declaration
mpiMotorDemandModeAnalogOffsetSet(MPIMotor motor, double offset);
Required Header: stdmpi.h
Change History: Added in 04.00.
Description
mpiMotorDemandModeAnalogOffsetSet writes the motor’s output offset to the controller. mpiMotorDemandModeAnalogOffsetSet is valid for a motor configured for the ANALOG demand mode. The motor offset demand is useful for open-loop +/- 10 volt control of analog drives.
Only SynqNet RMBs support the ANALOG demand mode. SynqNet drives supports TORQUE and VELOCITY mode, depending on the drive.
motor | A handle to a motor object |
---|---|
offset | An analog demand offset value. The valid range is -10 to +10 volts. |
Return Values |
---|
MPIMessageOK |
MPIMotorMessageMOTOR_INVALID |
Sample Code
Example - Write the motor's analog demand offset. double offset = .1; /* volts */ MPIMotorDemandMode mode; mpiMotorDemandModeGet(motor, &mode); if (mode == MPIMotorDemandModeANALOG) { mpiMotorDemandModeAnalogOffsetSet(motor, offset); }
See Also
mpiMotorConfigGet | mpiMotorConfigSet | mpiMotorDemandModeGet | mpiMotorDemandModeSet