完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
电子发烧友论坛|
嗨,
我只使用速度(运行)命令来使用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个回答
|
|
|
嗨,
我们正在调查您的调查结果。 同时,您可以尝试将加速度和减速度设置为最大值(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 |
|
|
|
|
|
嗨,
使用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 |
|
|
|
|
|
嗨,
在这种情况下,我认为你可以使用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 |
|
|
|
|
只有小组成员才能发言,加入小组>>
stm32mp157的异核通信的rpmsg_sdb的m4固件和a7驱动该如何编写?
1453 浏览 0 评论
stm32f103用freertos对一个采样率为1kHz的传感器,进行采样,数据出差
1502 浏览 0 评论
请教:在使用UDE STK时,单片机使用SPC560D30L1,在配置文件怎么设置或选择?里面只有SPC560D40的选项
3649 浏览 1 评论
3842 浏览 1 评论
请问是否有通过UART连接的两个微处理器之间实现双向值交换的方法?
2461 浏览 1 评论
STM32H7打开DCache后,出现了串口接收信息为空的现象,是哪里出了问题?
727浏览 5评论
用NANO STM32F103RBT6的开发板烧录不了是哪里出了问题?
661浏览 5评论
710浏览 5评论
外部中断触发类型为双边沿触发,进入中断回调后有什么办法判断该边沿是上升沿还是下降沿?
941浏览 5评论
STM32L071CBT6低温环境下无法正常工作是什么原因引起的?
745浏览 5评论
/9
小黑屋| 手机版| Archiver| 电子发烧友 ( 湘ICP备2023018690号 )
GMT+8, 2025-12-2 03:55 , Processed in 1.378678 second(s), Total 46, Slave 40 queries .
Powered by 电子发烧友网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
电子发烧友观察
版权所有 © 湖南华秋数字科技有限公司
电子发烧友 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191

淘帖
1694