What is StallCheck() function in MC9S12ZVML128_BLDC_Sensorless ?

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

What is StallCheck() function in MC9S12ZVML128_BLDC_Sensorless ?

ソリューションへジャンプ
1,482件の閲覧回数
sohyunjang
Contributor III

I use MC9S12ZVML128_BLDC_Sensorless example project.

I am wondering that Function: void StallCheck(void)'s role.

I think that stallcheck is Overcurrent and Lowcurrent check.

Is it right?

I want a detailed explanation.


TThThank you.

pachamatej

ラベル(1)
タグ(3)
0 件の賞賛
返信
1 解決策
1,272件の閲覧回数
pachamatej
NXP Employee
NXP Employee

Actually, it has nothing to do with currents. The StallCheck() function is checking for the motor stall status (the situation when the rotor is blocked).

When the motor is running, an average zero-crossing period is calculated. If one of the acutal periods is greater or less than limit, stallCheckCounter is increased. Or, if one the periods is less then STALLCHECK_MIN_CMT_PERIOD, the stallCheckCounter is increased as well.

If the stallCheckCounter is greater than zero, a "Stall" is indicated. Once it reaches STALLCHECK_MAX_ERRORS, a fault is thrown and the application falls in to FAULT state.

The StallCheck() function is called after a new zero-crossing period is available, but in Sensorless mode only.

 

Please let me know if you need more explanation.

Regards,

Matej

元の投稿で解決策を見る

0 件の賞賛
返信
1 返信
1,273件の閲覧回数
pachamatej
NXP Employee
NXP Employee

Actually, it has nothing to do with currents. The StallCheck() function is checking for the motor stall status (the situation when the rotor is blocked).

When the motor is running, an average zero-crossing period is calculated. If one of the acutal periods is greater or less than limit, stallCheckCounter is increased. Or, if one the periods is less then STALLCHECK_MIN_CMT_PERIOD, the stallCheckCounter is increased as well.

If the stallCheckCounter is greater than zero, a "Stall" is indicated. Once it reaches STALLCHECK_MAX_ERRORS, a fault is thrown and the application falls in to FAULT state.

The StallCheck() function is called after a new zero-crossing period is available, but in Sensorless mode only.

 

Please let me know if you need more explanation.

Regards,

Matej

0 件の賞賛
返信