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.

TMS320F280039C: Universal_motor control_lab guide

Part Number: TMS320F280039C
Other Parts Discussed in Thread: C2000WARE, C2000WARE-MOTORCONTROL-SDK

Hi Team,

I am working on Sensored FOC (Encoder) using TMS320F280039C controller.

I am using Universal motor control lab code and Porting F280025 to F280039C micro controller.

Example lab project at the folder: C:\ti\c2000\C2000Ware_MotorControl_SDK_<version>\solutions\universal_motorcontrol_lab\f28002x.

C2000WARE-MOTORCONTROL-SDK: https://www.ti.com/tool/C2000WARE-MOTORCONTROL-SDK

Universal Project and Lab User’s Guide: https://www.ti.com/lit/spruj26.

I have one doubt, Please help me .

1.How the below motor parameters are taken in Universal motor control code?.

If I can use another PMSM motor (like 20 pole pairs), on what bases can We define it?.

Thanks & Regards.

  • Hi Chaithanya,

    Thank you for your question, one of our experts will get back to you shortly.

  • The 4 parameters below are only used in build level 2 to set the v/f profile for open-loop control, which are based on the maximum frequency and voltage of the motor.

    #define USER_MOTOR1_FREQ_LOW_Hz (10.0f) // Hz
    #define USER_MOTOR1_FREQ_HIGH_Hz (400.0f) // Hz
    #define USER_MOTOR1_VOLT_MIN_V (3.0f) // Volt
    #define USER_MOTOR1_VOLT_MAX_V (24.0f) // Volt
     

    The other parameters are used to set the speed and current used in different state as shown in the symbols name. You don't need to these parameters except the 3 parameters below if you run the motor with FAST algorithm.\

    These two parameters are for startup, you can set these parameters  according to the rated current of the motor.

     #define USER_MOTOR1_STARTUP_CURRENT_A (3.5f) // A
    #define USER_MOTOR1_TORQUE_CURRENT_A (3.0f) // A

    The maximum peak current of the motor phase for over current fault protection.
    #define USER_MOTOR1_OVER_CURRENT_A (7.5f) // A

  • Thanks for the reply,

    1.We are planning to run the motor with Encoder feedbacks.

    2.As mentioned in universal lab document we can run the motor without using FAST, so we planned to run motor without using FAST.

    3. Can you please let me know what parameters I need to consider to run the motor?

    4.Below are our Custom motor parameters, from these parameters how much percentage of max current is used to set current, torque current and over current fault protection ?

    #define USER_MOTOR_TYPE MOTOR_TYPE_PM
    #define USER_MOTOR_NUM_POLE_PAIRS  (10)
    #define USER_MOTOR_Rr_Ohm  (0.0)
    #define USER_MOTOR_Rs_Ohm  (4.75093718)
    #define USER_MOTOR_Ls_d_H  (0.134229556)
    #define USER_MOTOR_Ls_q_H  (0.134229556)
    #define USER_MOTOR_RATED_FLUX_VpHz  (8.75)
    #define USER_MOTOR_MAGNETIZING_CURRENT_A (NULL)
    #define USER_MOTOR_RES_EST_CURRENT_A  (20.0)
    #define USER_MOTOR_IND_EST_CURRENT_A  (-20.0)
    #define USER_MOTOR_MAX_CURRENT_A  (10.8)
    #define USER_MOTOR_FLUX_EXC_FREQ_Hz  (20.0)
    #define USER_MOTOR_NUM_ENC_SLOTS  (2500.0)
    #define USER_MOTOR_INERTIA_Kgm2  (3.10002e-02)

    #define USER_MOTOR_FREQ_MIN_HZ  (5.0)

    #define USER_MOTOR_FREQ_MAX_HZ  (24.0)

    #define USER_MOTOR_FREQ_LOW_HZ  (2.0) // Hz
    #define USER_MOTOR_FREQ_HIGH_HZ  (20.0) // Hz
    #define USER_MOTOR_VOLT_MIN_V  (54.0) // Volt
    #define USER_MOTOR_VOLT_MAX_V  (335.0) // Volt

    Thanks & Regards.

  • #define USER_MOTOR_NUM_ENC_SLOTS  (2500.0)

    Set the above parameters correctly according to the encoder you used.

    3. Can you please let me know what parameters I need to consider to run the motor?
    4.Below are our Custom motor parameters, from these parameters how much percentage of max current is used to set current, torque current and over current fault protection ?

    That depends on your motor and hardware board. You can set these frequency and current parameters to any values that are less the maximum frequency and current.

    The over current should be less half the maximum ADC sensing current.

    BTW, only FAST supports motor identification.

  • Thanks for the Reply,

    Is there any other Reference document for universal lab code, because we are un able to understand parameters settings user.h.

    We are aware of the below document "Universal Project and Lab User’s Guide: https://www.ti.com/lit/spruj26".

     Thanks & Regards.

  • Currently, no. We are working on the lab guide update for adding more description about these parameters.

    You may refer to InstaSPIN-FOC and InstaSPIN-MOTION User's Guide if you want to know more detail about InstaSPIN-FOC with FAST.