MPIMotorEncoder / MEIMotorEncoder
Definition: MPIMotorEncoder
|
typedef enum {
MPIMotorEncoderPRIMARY,
MPIMotorEncoderSECONDARY,
} MPIMotorEncoder;
|
Description
MPIMotorEncoder is an enumeration
of encoder feedback inputs for a motor.
|
MPIMotorEncoderPRIMARY |
The first encoder feedback for a motor. |
MPIMotorEncoderSECONDARY |
The second encoder feedback for a motor. |
|
Definition: MEIMotorEncoder
Description
MEIMotorEncoder is an enumeration of encoder feedback inputs for a motor.
For standard modulo, set modulo.value to the modulo value and set modulo.reverse to FALSE.
For reverse modulo, set modulo.value to the modulo value from the raw encoder and set modulo.reverse to TRUE.
|
type† |
The type of feedback being used by the motor. |
encoderPhase† |
Controls the direction of the encoder counts (only applicable with quadrature encoder feedback). |
filterDisable† |
Enables/Disables the use of filters on the encoder signal. |
ratio |
Custom firmware required prior to MPI version 03.04.XX. Encoder feedback ratio for scaling. |
modulo |
Custom firmware required prior to MPI version 03.04.XX. Reverse modulo value for the encoder to handle rollover. |
ssiConfig |
A structure to configure the motor feedback for SSI (Synchronous-Serial Interface). Only use ssiConfig when the MEIMotorEncoderType is configured for MEIMotorEncoderTypeSSI.
|
† - If you attempt to change this value and hardware is not connected, an error message will be returned. |
|
See Also
Error Limit and Limit Switch Errors | mpiMotorCreate | MEIMotorEncoderType
|