ST意法半导体
直播中

黄彩萍

7年用户 178经验值
私信 关注
[问答]

L6482速度模式电机无法减速

嗨,

我只使用速度(运行)命令来使用L6482,因为我们必须在速度模式下使用电机。 Acc / Del由我们控制。 Chip Acc / Del设置为无限(0xFFF),MIN_SPEED / MAX_SPEED设置为0x3FF。 STEP_MODE是1/4步

一切正常,我可以读/写所有寄存器。
如果我给出一个运行命令(0x50)电机以该频率运行,并且CurrentSpeed寄存器使用运行频率(除以4,因为我使用1/4微步)。电机的实际频率也是正确的。

只有当我写出相同或更高的速度(即增加频率)时才会出现这种情况。
如果我尝试降低速度,则电机以最后速度运行,SPEED注册表保持该值。无法减速。如果我一次性或连续地给出RUN命令,就会发生这种情况。
只有当我执行RUN(0x00)时,电机才会停止,SPEED也会转到0x00。

为了在直接速度模式控制中使用L6482,有特定的注册表设置或顺序吗?
谢谢




#l6482

以上来自于谷歌翻译


以下为原文




Hi,

I'm tring to use a L6482 using only speed (Run) command because we have to use the motor in speed mode. Acc/Del are on our control. Chip Acc/Del are set to infinite (0xFFF) and MIN_SPEED/MAX_SPEED at 0,0x3FF. STEP_MODE is on 1/4 step

Everything works fine, I can read/write all registers.
If  I give a Run command (0x50) motor runs at that frequency and CurrentSpeed register give use the Run frequency (divided by 4 because I use 1/4 microstep). Real frequency of the motor is also  correct.

This is true only if  I write equal or greater speeds (i.e increase frequecy).
If I try to decrease speed the motor runs at last speed and SPEED registry remain at that value. No way to decelerate. This happen if I give the RUN command  one shot or continuosly as well.
Only if I execute a RUN( 0x00 ) the motor stop and SPEED goes at 0x00 as well.

There are particular registry setting or sequence in order to use th L6482 in a direct speed mode control?
Thanks



  
#l6482

回帖(3)

刘璐

2018-11-1 14:34:24
嗨,
 
 
 我们正在调查您的调查结果。
 同时,您可以尝试将加速度和减速度设置为最大值(0xFFE),而不启用无限的acc  dec模式。
 
 问候
 恩里科

以上来自于谷歌翻译


以下为原文





Hi,


We are investigating you findings.
Meanwhile you could try to set the acceleration and deceleration to the maximum (0xFFE) without enabling the infinite accdec mode.

Regards
Enrico
举报

黄彩萍

2018-11-1 14:41:54
嗨,
 
使用0xFFE时,芯片行为是正确的。但是因为施加固定的acc / del这会影响我们的控制策略。
我附上2个显示效果的位图。黄线是指令的速度(频率),红线1是以ABS_POS(t)-ABS_POS(t-1)计算的速度。的dT = 4ms的。
一个是在L6482中编程的oxFFE ACC / DEC和我们指定的无限加速/减速。
第二个是在L6482中编程的0xFFF ACC / DEC和我们指定的一些加速/减速
问候
卡罗

以上来自于谷歌翻译


以下为原文





Hi,

With 0xFFE the chip behavior is correct. But because impose a fixed acc/del this impacts in our control strategy.
I attach 2 bitmaps that show the effect. Yellow line is the speed (frequency) commanded, Red one is the speed calculated as ABS_POS(t)-ABS_POS(t-1). dT=4ms.
One is with oxFFE ACC/DEC programmed in L6482 and infinite Acc/Dec commanded from us.
Second is with 0xFFF ACC/DEC programmed in L6482 and some Acc/Dec commanded from us
Regards
Carlo
举报

刘璐

2018-11-1 14:57:49
嗨,
 
 
 在这种情况下,我认为你可以使用stepclock操作。
 通过这种方式,您可以无任何限制地施加任意速度曲线。
 
 Regadrs
 恩里科

以上来自于谷歌翻译


以下为原文





Hi,


In this case I think you can use the stepclock operation.
In this way you can impose an arbitrary speed profile without any limitation.

Regadrs
Enrico
举报

更多回帖

发帖
×
20
完善资料,
赚取积分