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.

Limit USER_MOTOR_MAX_CURRENT during run time

I read that the USER_MOTOR_MAX_CURRENT is basically a limit for the speed controller.  If that is the case would changing pUserParams->maxCurrent during runtime be ok?  I have a custom drive board running the F28027 and want to limit the amount of current that the speed controller will allow based on the input voltage. Thanks!

  • USER_MOTOR_MAX_CURRENT sets the +/- limits for the output of the speed controller (sets the max/min Iq_Ref_A) IF a speed controller is used.

    yes, that is fine. USER_MOTOR_MAX_CURRENT is also used to set the default tuning of the speed controller, but I suspect you are already changing that significantly anyways.