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.

PWM can not be turned off in Lab10a

I have finished a product with lab 10a, but without lab 10e Flying start function, I added lab 10e Flying start function to lab 10a. After repeated tests, it was confirmed that the transplantation was successful.

This product is called dental implant machine. When the motor stops, it can adjust the speed and torque through the screen. If the motor can not adjust the torque when it stops, this product will be meaningless.

 Lab10e Flying start motor can be stopped directly,Why can't PWM be turned off in lab 10a?Procedure is as follows

  if(gMotorVars.Flag_RunState == false)  

{

 gPwmData.Tabc.value[0] = _IQ(0.0);  

gPwmData.Tabc.value[1] = _IQ(0.0);

 gPwmData.Tabc.value[2] = _IQ(0.0);

 // disable the PWM  HAL_disablePwm(halHandle);

  }

  • It may be more reasonable to design your project based on lab10e if you want to use the flying start function. The PWM will not be turned off and just output with 50% duty if you didn't call HAL_disablePwm() as you mentioned above. And hope you can have a look at instaSPIN lab guide first and show more information about your question that should help us to solve your question. Thanks.