MPI 04.00 Reference >> mpiMotor

mpiMotorDemandModeDualAnalogOffsetSet

Declaration

mpiMotorDemandModeDualAnalogOffsetSet(MPIMotor  motor,
                                      double    primaryOffset,
                                      double    auxOffset);

 

Required Header: stdmpi.h

Change History: Added in 04.00.

Description

mpiMotorDemandModeDualAnalogOffsetSet writes the motor’s output offsets to the controller.  mpiMotorDemandModeDualAnalogOffsetSet is valid for a motor configured for the ANALOG_DUAL_DAC demand mode. The motor offset demand is useful for open-loop +/- 10 volt control of analog drives.

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 The primary analog demand offset value.  The valid range is -10 to +10 volts.
auxOffset 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