MPI 04.00 Reference >> mpiMotor
mpiMotorFeedbackRatio
Declaration
MPI_RESULT mpiMotorFeedbackRatio(MPIControl control, int32_t motorNumber, int32_t feedbackNumber, MPIRatio *ratio);
Required Header: stdmpi.h
Change History: Added in 04.00.
Description
mpiMotorFeedbackRatio reads the feedback scaling from the controller and writes it into the structure pointed to by ratio. The feedback ratio can be configured with mpiMotorConfigSet. Feedback ratio scaling is useful for reducing feedback resolution to match previous machine configurations or when comparing multiple drive/motor combinations.
control |
A handle to a control object. |
---|---|
motorNumber |
An index to a motor. |
feedbackNumber |
An index to a feedback for the specified motorNumber. |
*ratio |
A pointer to a structure containing the feedback ratio |
Return Values |
---|
MPIMessageOK |
MPIMessageARG_INVALID |
MPICaptureMessageMOTOR_INVALID |