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.

Upgrade CTRL State Diagram with New Customized State

Hi everyone,

I'd like to konw if the structure of the CTRL state machine is changeable to add, for example, my custom state necessary for my application.

I'm using a DRV8301 kit (F2806x Iso Control Card) and I'm adding a new state (for example "run") trying to keep the same features in all the condition found in the CTRL_State_OnLine but the system doesn't work.

Maybe there are some restrictions (for example with the Estimator State Machine) in the hidden code in ROM that not recognize other CTRL states differet from the default (CTRL_State_Idle, CTRL_State_OnLine, CTRL_State_OffLine)? or it is possibile and I'm doing something wrong in programming.

Thanks in Advice.

Matteo

  • No, you shouldn't try to change the CTRL states as a portion of this is in ROM for the motor ID process. you can set-up your own control states for run-time if you use the simplified framework in proj_lab11
  • Perfect!! Now all works fine!!! But I need to do another question!

    I'm using the system in no load mode and all works fine, but when the load is almost 10 A or higher(i'm using an electronic controlled load) I read a costant torque (almost 1 N*m) and the speed decrease drastically.

    It seems to be a sort of limit in torque or in current; if I increase the parameter USER_MOTOR_MAX_CURRENT in the user.h file, can I improve that situation?

    Thanks in Advice

    Matteo