MPI 04.00 Reference >> mpiMotor

mpiMotorDemandModeVelocityOffsetSet

Declaration

mpiMotorDemandModeVelocityOffsetGet(MPIMotor   motor,
                                    double     *torqueOffset,
                                    double     *velocityOffset);

 

Required Header: stdmpi.h

Change History: Added in 04.00.

Description

mpiMotorDemandModeVelocityOffsetSet writes the motor’s torque and velocity offsets to the controller.  mpiMotorDemandModeVelocityOffsetSet is valid for a motor configured for the VELOCITY demand mode.  The motor torqueOffset and velocityOffset demand is useful for open-loop control of drives in velocity 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
torqueOffset
A torque demand offset value. The valid range is 16-bits (-32767 to 32768).
velocityOffset
a velocity demand offset value. The valid range is 16-bits (-32767 to 32768).
Return Values
MPIMessageOK
MPIMotorMessageMOTOR_INVALID
Example - Write the motor's velocity and torque demand offsets.

double torqueOffset = 0.0;
double velocityOffset = 100.0;
MPIMotorDemandMode mode;

mpiMotorDemandModeGet (motor, &mode); 

if (mode == MPIMotorDemandModeVELOCITY) {
mpiMotorDemandModeTorqueOffsetSet(motor, torqueOffset, velocityOffset);
}     

See Also

mpiMotorConfigGet | mpiMotorConfigSet | mpiMotorDemandModeGet | mpiMotorDemandModeSet