SPRAC77E January 2022 – February 2022 TMS320F28379D , TMS320F28379D-Q1 , TMS320F28379S
Abs2Qep supports generation of QEP-I to indicate crossing absolute zero. Detection of the zero cross relies on knowing the maximum revolutions-per-minute (RPM) of the absolute encoder. The RPM combined with the position sampling frequency determines the maximum possible delta change. If the delta change is larger than the absolute value of the maximum, then absolute zero has been crossed.
Consider the following example:
The maximum position change is:
Therefore any position change where the magnitude is greater than .05 x Qmax is assumed to be a zero crossing.
Figure 4-4 illustrates crossing zero in the forward direction. Position(n) is a relatively small number and Position(n-1) is a very large number. Position(n) - Position(n-1) is, therefore, a negative number with a magnitude greater than ABS_MAX_POSITION.
In this case, Abs2Qep uses the sum of two measurements to determine the equivalent QEP pulses:
Figure 4-5 illustrates zero crossed in the reverse direction. Position(n) is a large value and Position(n-1) is relatively small. Therefore Position(n) - Position(n-1) will be positive and have a magnitude > ABS_MAX_POSITION.
In this case, Abs2Qep uses the sum of measurements:
Notice, in the resulting PTO, QEP-B leads by 90° indicating a reverse direction.