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.

TMS320F280049C-Q1: Speed PI Controller tunning

Part Number: TMS320F280049C-Q1

Hello Dear All

In the "MotorControl SDK InstaSPIN Lab Guide_InstaSPIN-FOC for F28004xC", chapter  Is07_speed_control – Speed Control Mode and Tuning Speed PI Controller it is written that:

For this next discussion, InstaSPIN uses the “parallel” PI controller for the speed control loop

But in mainISR(void) from "is07_speed_control.c"  for the  speed control is used “series” PI controller

PI_run_series(piHandle_spd,

                          estInputData.speed_ref_Hz,

                          estOutputData.fm_lp_rps * MATH_ONE_OVER_TWO_PI,

                          0.0,

                          (float32_t *)(&(Idq_ref_A.value[1])));

How to tune “series” PI controller for speed or to change mainISR  in "is07_speed_control.c" with “parallel” PI controller for the speed control loop?

Best regards,

Cvetan Marinov

  • You may still keep using the PI_run_series() for speed loop, that has the same performance as using PI_run_parallel(). Tuning the loop based on the default calculation gains, and then online changing the gains according to the testing state you want to achieve. You may find some tips in the control textbooks or the engineering forum.

    You just need to use PI_run_parallel instead of PI_run_series in the lab if you needed, bu you have to change the Ki accordingly.