In high-performance motor control systems, precise zero-point calibration serves as the foundation for accurate positioning, efficient operation, and advanced functionality. When using quadrature encoders for feedback, engineers face the persistent challenge of establishing a stable mechanical reference point through the encoder's index signal. Following procedures like Rs-recalibration that align electrical angles with rotor positions, the critical task remains: how to associate the encoder's index pulse with this aligned zero point and translate it into a usable reference offset for enhanced system performance.
Quadrature encoders typically generate two orthogonal signals (A and B phases) for tracking rotational direction and incremental position, plus an index signal (Z or I) that outputs a single pulse per revolution at a specific mechanical position. This index pulse provides an ideal absolute position reference.
In platforms like TI's InstaSPIN-MOTION, hardware registers enable direct reading of encoder states. The
QPOSILAT
(Position Latch) register plays a crucial role—when the index signal activates, it captures and holds the current quadrature encoder counter value. This latched value represents the mechanical position of the index signal relative to the encoder's internal zero point.
After completing Rs-recalibration (which aligns the motor to the nearest magnetic pole), engineers must monitor the encoder module to detect index pulses during rotation. The
QPOSILAT
register value captured during an index pulse reveals the fixed positional relationship between the index signal and the recalibrated alignment point—what we term the "index offset."
Because the mechanical relationship between encoder index signals and rotor poles remains constant, the captured index offset value serves as a reliable reference. This offset represents the mechanical displacement between the index position and the encoder's internal counter zero.
The optimal approach involves configuring the encoder module itself to recognize index positions:
QEPCTL
in TI processors). This setting establishes the index position as the definitive zero reference.
With the encoder properly configured, functions like
STPOSCTL_setPositionReference_mrev
automatically reference the index-defined zero point when passed a "0" parameter, eliminating manual offset calculations.
For systems requiring runtime reference updates, smooth transitions between position modes depend on the encoder's ability to maintain angle continuity while redefining its zero point based on index signals.
Following InstaSPIN-MOTION's Lab 12-13 workflow demonstrates the process:
QPOSILAT
values during index pulses to determine mechanical offsets
Key Implementation Guidelines:
By systematically utilizing quadrature encoders' index signals and processor-specific encoder modules, engineers can establish robust zero-point calibration systems. The critical innovation lies in configuring hardware to automatically reset position counters upon index detection, creating an inherent mechanical reference point. This method surpasses traditional parameter adjustments in reliability and precision, enabling next-generation motor control applications requiring absolute position awareness and synchronized multi-axis operation.
Contact Person: Ms. Mandy
Tel: 86 137 6172 1799
Fax: 86-21-39303660