This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

process of Calibration Angle measurement c2000

Hi All,

I'm working on PMSM Motor Control Project (with Encoder + FOC). 

For that I've imported the HVPM Sensored code from control-suit. I've modified the code as per my requirement and achieved the speed and FOC control as per my need. 

Now it's time for production. 

In production, the drive and motor will be change every-time, so every time I've to execute the procedure of CALIBRATION ANGLE MEASUREMENT. this is not a fair way. 

Can anybody suggest me to skip this process of Calibration Angle measurement? 

What's the following line of QEP.h file means? 

v.RawTheta = EQep1Regs.QPOSCNT + v.CalibratedAngle; 

if (v.RawTheta < 0) 

{
               v.RawTheta = v.RawTheta + EQep1Regs.QPOSMAX; 

}
else if (v.RawTheta > EQep1Regs.QPOSMAX) 

{
              v.RawTheta = v.RawTheta - EQep1Regs.QPOSMAX;

}

 

Utpal