MPI 04.00 Reference >> mpiMotor

mpiMotorDemandModeDualAnalogOutput

Declaration

mpiMotorDemandModeDualAnalogOutput(MPIMotor  motor,
                                   double    *primaryOutput,
                                   double    *auxOutput);

 

Required Header: stdmpi.h

Change History: Added in 04.00.

Description

mpiMotorDemandModeDualAnalogOutput reads the motor’s outputs from the controller and writes them into the values pointed to by primaryOutput and auxOutput. mpiMotorDemandModeDualAnalogOutput 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
primaryOutput The primary analog demand output value. The valid range is -10 to +10 volts.
auxOutput The secondary analog demand output value. The valid range is -10 to +10 volts.
Return Values
MPIMessageOK
MPIMotorMessageMOTOR_INVALID

Sample Code

Example - Read the motor's analog demand outputs.

double output0, output1;
MPIMotorDemandMode mode;

mpiMotorDemandModeGet(motor, &mode); 

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

See Also

mpiMotorConfigGet | mpiMotorConfigSet | mpiMotorDemandModeGet | mpiMotorDemandModeSet