Problem to Reach Rated Speed

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

Problem to Reach Rated Speed

跳至解决方案
3,490 次查看
PedroCastro
Contributor III

Hello everbody,

I am using the KMS v1.2 with a FRDM-KV31 for a current control project. After the KMS v1.2 was released I started to use the sensorless control with hall startup and indeed the startup torque control is much better. However, it does not reach the rated speed of 1050 rom and its maximum is around 480 rpm. I have tested another project without the hall startup and it does reach the rated speed with the same current requested.
What is a possible workaroud for this issue?

Thanks in advance

标签 (1)
0 项奖励
回复
1 解答
3,117 次查看
linestream-adam
Senior Contributor I

Pedro,

I found the bug.  Updated file attached.

在原帖中查看解决方案

0 项奖励
回复
12 回复数
3,117 次查看
linestream-adam
Senior Contributor I

Pedro,

There was a bug in the SNLESSHALL reference projects when using torque mode.  I've corrected it.  Try this updated drv.c file to see if it resolves the issue.

0 项奖励
回复
3,117 次查看
PedroCastro
Contributor III

Hi, It is in fact in your reply! I didn't see it when you replied.

I have tried the drv.c and it reaches the nominal speed, but control doesn't look like a startup hall, it is much lower than the other one. Any hint why that happens?

0 项奖励
回复
3,119 次查看
linestream-adam
Senior Contributor I

Pedro,

No worries.  In the version that I posted, it now does the startup similar to sensorless velocity.  In that it will track the speed reference until it reaches the crossover speed ("Speed Threshold" in GUI), once the speed reference reaches the crossover speed it will transition into FOC and will run in torque mode as you expect.  If you want to speed up faster before getting into FOC, you can increase the acceleration and jerk of the speed profile before the transition into FOC.

0 项奖励
回复
3,119 次查看
PedroCastro
Contributor III

I got a bit confused. Is it a modified SNSRLESS control or I KMS GUI should I keep using the SNSRLSSHALL project and then copy your drv.c in the generated code?

0 项奖励
回复
3,119 次查看
linestream-adam
Senior Contributor I

The drv.c file I provided is for the SNLESSHALL reference project.  There were some defects in that file for running the SNLESSHALL project in torque control mode.

In the SNLESSHALL project, the goal is to start the motor using the Hall sensors but then transition into FOC.  It isn't intended to use the Halls for the complete speed range.

0 项奖励
回复
3,119 次查看
PedroCastro
Contributor III

Hi Adam,

one thing I would like to point it out is that using this drv.c I am not able to do the parameters setting in KMS. It cannot even measure resistance and inductance. In fact in torque control it reaches rated speed.

Could you send me an updated file?

0 项奖励
回复
3,118 次查看
linestream-adam
Senior Contributor I

Pedro,

I found the bug.  Updated file attached.

0 项奖励
回复
3,119 次查看
linestream-adam
Senior Contributor I

Thanks for letting me know Pedro.  I'll look at the issue and get it resolved.

0 项奖励
回复
3,119 次查看
PedroCastro
Contributor III

Hi Adam,

thanks for your response, but I think you have not attached any files!!

0 项奖励
回复
3,119 次查看
philip_drake
NXP Employee
NXP Employee

I see the attachment Pedro that AdamReynolds‌ attached.

Regards,

Philip

0 项奖励
回复
3,119 次查看
linestream-adam
Senior Contributor I

There isn't a file on my reply?

0 项奖励
回复
3,119 次查看
linestream-adam
Senior Contributor I

Pedro,

Interesting.  Can you attach your system.h file to this forum post?  This will help me understand this issue further.

Thanks

0 项奖励
回复