完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
电子发烧友论坛|
你好!
在我的应用程序中,当步进电机以恒定速度运行时,当BUSY标志为高电平时,我发送GoTo(ABS_POS)命令,因此我确信达到了目标速度。大部分时间一切都很顺利,但有时候(可能是发送命令总数的5-10%)GoTo(ABS_POS)命令就像GoTo_DIR(DIR,ABS_POS)命令一样,但是“错误”方向和电机使所有相反方向2 ^ 22步。因此,GoTo(ABS_POS)并不像最短的定位那样。我已经多次检查实际信号以确保命令的地址是0x60,而不是0x68,可以在附加图片上看到。 有什么建议可以解决这个问题吗? 以上来自于谷歌翻译 以下为原文 Hello! In my application I send GoTo(ABS_POS) commands when stepper motor is running at constant speed, when BUSY flag is high, so I'm sure that the target speed is reached. And everything is going well most of time, but sometimes (maybe 5-10% of total number of commands send) GoTo(ABS_POS) coommand acts like GoTo_DIR(DIR, ABS_POS) command but with ''wrong'' direction and motor makes all 2^22 steps in opposite direction. So, GoTo(ABS_POS) doesn't act like a positioning in a shortest way. I have checked real signals many times to be sure that adrress of command is 0x60, not 0x68, one can see on attached picture. Are there any suggestions why this can happen and how one can avoid such problem? |
|
相关推荐
2个回答
|
|
|
我没有你的答案,但Run()命令采取方向和速度(我假设这是你如何达到恒定速度)。根据发出Run()时的电机位置(以及使用的方向)和GoTo()发出时的位置,我可以看到电机如何沿与您期望的方向不同的方向移动。
出于测试目的,您可能想要检索Run()之前的位置和GoTo()之前的位置,以查看5-10%的错误方向是否与找到的位置相关。 希望能帮助到你, 斯科特 以上来自于谷歌翻译 以下为原文 i don't have an answer for you but the Run() command takes a direction and speed (i assume this is how you got to a constant speed). depending on the position of the motor when Run() was issued (and direction used) and the position when the GoTo() is issued i can see how the motor might move in a different direction that what you expect. for test purposes you might want to retrieve the position before Run() and the position before GoTo() to see if the 5-10% wrong directions correlate with the positions found. hope it helps, scott |
|
|
|
|
|
谢谢你的建议!这样的测试我还没有完成。但是我真的很困惑GoTo(ABS_POS)命令,它可以在任何位置随时发出(当BUSY标志为高时)并且应该以最短的方式定位电机,有时由于某种原因失败。
以上来自于谷歌翻译 以下为原文 Thanks for suggestion! Such test I haven't done yet. But I'm really confused by the fact that GoTo(ABS_POS) command, which can be issued anytime (surely when BUSY flag is high) at any position and should position motor in shortest way, sometimes for some reason fails. |
|
|
|
|
只有小组成员才能发言,加入小组>>
stm32mp157的异核通信的rpmsg_sdb的m4固件和a7驱动该如何编写?
1469 浏览 0 评论
stm32f103用freertos对一个采样率为1kHz的传感器,进行采样,数据出差
1521 浏览 0 评论
请教:在使用UDE STK时,单片机使用SPC560D30L1,在配置文件怎么设置或选择?里面只有SPC560D40的选项
3668 浏览 1 评论
3860 浏览 1 评论
请问是否有通过UART连接的两个微处理器之间实现双向值交换的方法?
2477 浏览 1 评论
STM32H7打开DCache后,出现了串口接收信息为空的现象,是哪里出了问题?
747浏览 5评论
用NANO STM32F103RBT6的开发板烧录不了是哪里出了问题?
680浏览 5评论
727浏览 5评论
外部中断触发类型为双边沿触发,进入中断回调后有什么办法判断该边沿是上升沿还是下降沿?
968浏览 5评论
STM32L071CBT6低温环境下无法正常工作是什么原因引起的?
770浏览 5评论
/9
小黑屋| 手机版| Archiver| 电子发烧友 ( 湘ICP备2023018690号 )
GMT+8, 2025-12-11 22:47 , Processed in 0.642533 second(s), Total 46, Slave 39 queries .
Powered by 电子发烧友网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
电子发烧友观察
版权所有 © 湖南华秋数字科技有限公司
电子发烧友 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191

淘帖
1665