MPI 04.00 Reference >> mpiMotor

mpiMotorDemandModeDualAnalogOffsetGet

Declaration

mpiMotorDemandModeDualAnalogOffsetGet(MPIMotor  motor,
                                      double    *primaryOffset,
                                      double    *auxOffset);

 

Required Header: stdmpi.h

Change History: Added in 04.00.

Description

mpiMotorDemandModeDualAnalogOffsetGet reads the motor’s output offsets from the controller and writes them into the value pointed to by primaryOffset and auxOffset. mpiMotorDemandModeDualAnalogOffsetGet is valid for a motor configured for the ANALOG_DUAL_DAC demand mode.

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

motor A handle to a motor object.
*primaryOffset A pointer to the primary analog demand offset value. The valid range is -10 to +10 volts.
* auxOffset A pointer to the secondary 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 offsets.

double offset0, offset1;
MPIMotorDemandMode mode;

mpiMotorDemandModeGet (motor, &mode); 

if (mode == MPIMotorDemandModeANALOG_DUAL_DAC) {
mpiMotorDemandModeDualAnalogOffsetGet(motor, &offset0, &offset1);
}

See Also

mpiMotorConfigGet | mpiMotorConfigSet | mpiMotorDemandModeGet | mpiMotorDemandModeSet