MPI 04.00 Reference >> mpiMotor

mpiMotorDemandModeAnalogOffsetGet

Declaration

mpiMotorDemandModeAnalogOffsetGet(MPIMotor   motor,
                                  double     *offset);

 

Required Header: stdmpi.h

Change History: Added in 04.00.

Description

mpiMotorDemandModeAnalogOffsetGet reads the motor’s output offset from the controller and writes it into the value pointed to by offset. mpiMotorDemandModeAnalogOffsetGet is valid for a motor configured for the ANALOG demand mode.

Only SynqNet RMBs support the ANALOG demand mode.  SynqNet drives will support TORQUE and possibly VELOCITY mode, depending on the drive.

motor A handle to a motor object.
*offset a pointer to an analog demand offset value.  The valid range is -10 to +10 volts.
Return Values
MPIMessageOK
MPIMotorMessageMOTOR_INVALID

Sample Code

Example - Read the motor's analog demand offset.

double offset;
MPIMotorDemandMode mode;

mpiMotorDemandModeGet(motor, &mode); 

if (mode == MPIMotorDemandModeANALOG) {
  mpiMotorDemandModeAnalogOffsetGet(motor, &offset);
}

See Also

mpiMotorConfigGet | mpiMotorConfigSet | mpiMotorDemandModeGet | mpiMotorDemandModeSet