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.

instaspin 增加保护停机问题。

Other Parts Discussed in Thread: MOTORWARE

如何在instaspin的motorware例程中增加保护停机指令?

如果在马达运行时,检测到外部过温,需要停机,这个时候在主循环中加入如下指令:

1)HAL_disablePwm(halHandle);

2)gMotorVars.Flag_Run_Identify = false;

3)gMotorVars.Flag_enableSys = false;

分别按以上3种指令保护停机,非常容易出现功率器件烧毁现象。

我想知道怎样编写指令闭锁输出比较安全?