MPI 04.00 Reference >> mpiMotor

mpiMotorDemandModeVelocityOffsetGet

Declaration

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

 

Required Header: stdmpi.h

Change History: Added in 04.00.

Description

mpiMotorDemandModeVelocityOffsetGet reads the motor’s torque and velocity offsets from the controller and writes it into the values pointed to by torqueOffset and velocityOffset.  mpiMotorDemandModeVelocityOffsetGet is valid for a motor configured for the VELOCITY 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
*torqueOffset
aApointer to a torque demand offset value. The valid range is 16-bits (-32767 to 32768).
*velocityOffset
A pointer to a velocity demand offset value. The valid range is 16-bits (-32767 to 32768).
Return Values
MPIMessageOK
MPIMotorMessageMOTOR_INVALID
Example - Read the motor's velocity and torque demand offsets.

double torqueOffset;
double velocityOffset;
MPIMotorDemandMode mode;

mpiMotorDemandModeGet(motor, &mode); 

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

See Also

mpiMotorConfigGet | mpiMotorConfigSet | mpiMotorDemandModeGet | mpiMotorDemandModeSet