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.

TMS320F280025C: Launchpad-F280025C

Part Number: TMS320F280025C
Other Parts Discussed in Thread: C2000WARE

Hi team,

Here's an issue from the customer may need your help:

The customer uses Launchpad-F280025C+DRV8323Rs development boards with the following torque control issues during debug: 

1) The speed control is used for both the source codes DMC_level_3 and DMC_level_4 in universal_motorcontrol_lab. DMC_level_3, although the current is closed loop (no speed loop is included), still need to assign a value to motorVars_M1.speedRef_Hz.

The customer believes that the torque control mode should not be affected by motorVars_M1.speedRef_Hz and that setting only the current level allows the motor to operate properly. However, currently in DMC_level_3, if motorVars_M1.speedRef_Hz = 0 is set, the motor will not function properly. 

2) Try changing the setting of obj->operateMode = operation_mode_TORQUE;//operation_mode_speed; in the initMotor1CtrlParameters function but still failed to implement torque control. 

They would like to know what code modifications are required based on DMC_level_3 to implement torque control? Could you help check this case? Thanks.

Best Regards,

Cherry

  • Hi Cherry,

    For #1, while DMC_level_3 does not have the speed PI controller the motor is controlled by using i/f control, that the rotor angle is generated from ramp generator module which takes speedRef_Hz as an input.

    For #2, I don't see where the operateMode variable actually gets used in the software project. I don't think it has any real affect.

    Best,

    Kevin

  • Hi Kevin,

    Thanks for your support.

    The customer wants to implement torque control through the current instead of speedRef_Hz control. And the case here is if this way is implemented based on universal_motorcontrol_lab and what modifications are required, OR is there any examples available? 

    Thanks and regards,

    Cherry

  • Hi Cherry,

    They could try to remove the ramp generator portions of code that utilize the speed_ref and then try to control I_q and I_d references manually. I'm not sure how simple of a task this is right now however.

    I'd need to check if we have some better reference for current / torque control.

    Best,

    Kevin

  • Hi Cherry,

    I found that the Dual-Axis Motor Control project located in MCSDK directory below has you manually set iq and id reference values manually. The customer can try and reference this code, however the software framework will be different than the Universal Motor Lab.

    C:\ti\c2000\C2000Ware_MotorControl_SDK_4_01_00_00\solutions\boostxl_3phganinv

    https://www.ti.com/lit/spraco3

    Best,

    Kevin