Jan 20, 2021
04:45 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Jan 20, 2021
04:45 AM
Hi,
We are trying to do Sensored FOC using the PMSM_FOC dave app.
After taking a look at a previous forum post: https://www.infineonforums.com/threads/5432-Can-t-find-how-to-do-sensored-FOC
From the forum post we understand that we have to overwrite the FOCInput->RotorAngleQ31 beforeFOC_Controller_LIB (HandlePtr);.
We are able to measure the correct speed and rotor angle from the HALL_POSIF module. My question is regarding the scaling.
1 .Does the Q31 Scaling mean that 0-360 degrees is scaled as 0 - 2^31 ?
And no negative values of angle must be provided(for forward direction ramp, 0 to 2^31 and for reverse, ramp 2^31 to 0).
2. And is the following scaling correct to set the Speed where we measured the RPM directly from HALL.
FOCInput->RotorSpeed_In = (MEASURED_RPM_FROM HALL * (HandlePtr->foc_config_ptr->speed_scale)) >> PMSM_FOC_Q15;
We are trying to do Sensored FOC using the PMSM_FOC dave app.
After taking a look at a previous forum post: https://www.infineonforums.com/threads/5432-Can-t-find-how-to-do-sensored-FOC
From the forum post we understand that we have to overwrite the FOCInput->RotorAngleQ31 beforeFOC_Controller_LIB (HandlePtr);.
We are able to measure the correct speed and rotor angle from the HALL_POSIF module. My question is regarding the scaling.
1 .Does the Q31 Scaling mean that 0-360 degrees is scaled as 0 - 2^31 ?
And no negative values of angle must be provided(for forward direction ramp, 0 to 2^31 and for reverse, ramp 2^31 to 0).
2. And is the following scaling correct to set the Speed where we measured the RPM directly from HALL.
FOCInput->RotorSpeed_In = (MEASURED_RPM_FROM HALL * (HandlePtr->foc_config_ptr->speed_scale)) >> PMSM_FOC_Q15;
Solved! Go to Solution.
- Tags:
- IFX
1 Solution
Jan 31, 2021
06:48 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Jan 31, 2021
06:48 PM
Hi ,
Please find the scale information from the app help section.
Best Regards,
Vasanth
Please find the scale information from the app help section.
Best Regards,
Vasanth
1 Reply
Jan 31, 2021
06:48 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Jan 31, 2021
06:48 PM
Hi ,
Please find the scale information from the app help section.
Best Regards,
Vasanth
Please find the scale information from the app help section.
Best Regards,
Vasanth