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.

TMS320F2800157: How to tunning the PID parameters for current and speed control performance

Part Number: TMS320F2800157
Other Parts Discussed in Thread: C2000WARE

Hi  Team:

      I am tuning the LEVEL 4 for startup(fast lib ,sensorless control ,universal motor control lab) , I found the actual  speed have very big overshoot ,almost double the ref speed   . about 10s later the motorVars_M1.speed_Hz can follow the motorVars_M1.speedRef_Hz as below picture

       initial  startup  stagement                                                     10s later

Do you have any tuning guide for the PID tuninng regarding the following parameters 

/ Current and Speed PI Regulators Tuning Coefficient
// the low speed threshold for adjusting the Kp and Ki of the speed PI regulator
#define USER_MOTOR1_GAIN_SPEED_LOW_Hz (60.0f) // 10%~50% of the rated speed

// the high speed threshold for adjusting the Kp and Ki of the speed PI regulator
#define USER_MOTOR1_GAIN_SPEED_HIGH_Hz (150.0f) // 50%~100% of the rated speed

// the gain coefficient to adjust the Kp of the speed PI regulator for startup
#define USER_MOTOR1_KP_SPD_START_SF (1.5f) // 0.1~100.0

// the gain coefficient to adjust the Ki of the speed PI regulator for startup
#define USER_MOTOR1_KI_SPD_START_SF (1.5f) // 0.1~10.0

// the low gain coefficient to adjust the Kp of the speed PI regulator
#define USER_MOTOR1_KP_SPD_LOW_SF (2.0f) // 0.1~100.0

// the low gain coefficient to adjust the Ki of the speed PI regulator
#define USER_MOTOR1_KI_SPD_LOW_SF (2.0f) // 0.1~10.0

// the high gain coefficient to adjust the Kp of the speed PI regulator
#define USER_MOTOR1_KP_SPD_HIGH_SF (1.0f) // 0.1~100.0

// the high gain coefficient to adjust the Ki of the speed PI regulator
#define USER_MOTOR1_KI_SPD_HIGH_SF (1.0f) // 0.1~10.0

// the low current threshold to adjust the Kp and Ki of the q-axis current PI regulator
#define USER_MOTOR1_GAIN_IQ_LOW_A (2.0f) // 10%~50% of the rated current

// the high current threshold to adjust the Kp and Ki of the q-axis current PI regulator
#define USER_MOTOR1_GAIN_IQ_HIGH_A (6.0f) // 50%~100% of the rated current

// the gain coefficient to adjust the Kp of the q-axis current PI regulator for startup
#define USER_MOTOR1_KP_IQ_START_SF (1.5f) // 0.1~10.0

// the gain coefficient to adjust the Ki of the q-axis current PI regulator for startup
#define USER_MOTOR1_KI_IQ_START_SF (1.5f) // 0.1~10.0

// the low gain coefficient to adjust the Kp of the q-axis current PI regulator
#define USER_MOTOR1_KP_IQ_LOW_SF (2.0f) // 0.1~10.0

// the low gain coefficient to adjust the Ki of the q-axis current PI regulator
#define USER_MOTOR1_KI_IQ_LOW_SF (2.0f) // 0.1~10.0

// the high gain coefficient to adjust the Kp of the d-axis current PI regulator
#define USER_MOTOR1_KP_IQ_HIGH_SF (1.0f) // 0.1~10.0

// the high gain coefficient to adjust the Ki of the d-axis current PI regulator
#define USER_MOTOR1_KI_IQ_HIGH_SF (1.0f) // 0.1~10.0

// the gain coefficient to adjust the Kp of the q-axis current PI regulator
#define USER_MOTOR1_KP_ID_SF (1.0f) // 0.1~10.0

// the gain coefficient to adjust the Ki of the q-axis current PI regulator
#define USER_MOTOR1_KI_ID_SF (1.0f) // 0.1~10.0

  • Hi,

    There's currently no guide for those parameters, outside of what's in the comments. If you want to try tuning the speed PI manually, you can reference the document below:

    C:\ti\c2000\C2000Ware_MotorControl_SDK_5_00_00_00\c2000ware\libraries\control\DCL\c28\docs\PID Controller Tuning Guide.pdf

    Best,

    Kevin