ST意法半导体
直播中

李桢

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

是否可以同时运行菊花链式电机?

对不起,如果这是一个简单的问题;我是电机控制的新手。
我有STEVAL-PCC009V2和四个EVAL6470H。我想同时把它们全部赶走。我在用户手册中看到,您无法在GUI中执行此操作,因为它一次只能向一个设备发送一个命令。有没有其他方法可以做到这一点?也许通过脚本编辑器?
谢谢!

#dspin-family-firmware-library#eval6470h#pcc009v2-eval6470h-spinfamily#l6470h-discovery-eval6470-disk#discovery-eval6470-disc #dspin-gui#pcc009v2

以上来自于谷歌翻译


以下为原文




Sorry if this is a simple question; I'm new to motor control.
I have the STEVAL-PCC009V2 and four EVAL6470Hs. I would like to drive them all at the same time. I saw in the user manual that you can't do that in the GUI, since it can only send one command to one device at a time. Is there an alternative method to do this? Perhaps through the script editor?
Thanks!

#dspin-family-firmware-library #eval6470h #pcc009v2-eval6470h-spinfamily #l6470h-discovery-eval6470-disk #discovery-eval6470-disc #dspin-gui #pcc009v2

回帖(2)

黄飞高

2019-1-16 15:55:14
简短回答是的。
答案很复杂。
您必须编写自己的代码或脚本,但移动命令是非阻塞的。这意味着您可以在很短的时间内发送一个接一个的移动命令。然后,您可以监控所有四个电机状态,以确定何时完成移动。
我会参考:
http://www.st.com/content/ccc/resource/technical/document/application_note/e8/ca/05/a0/9e/ff/4e/69/DM00039787.pdf/files/DM00039787.pdf/jcr:内容/翻译/ en.DM00039787.pdf
 我使用连接到Nucleo板的IHM02A1做了类似的事情(你只需编写一堆C代码并使用STM的库)。

以上来自于谷歌翻译


以下为原文




Short answer yes.
Long answer is more complicated.
You will have to write your own code or script, but the move commands are non blocking. Meaning you can send one move command after another in very short order. You then monitor all four motor status's to decide when your moves are done.
I would refer to:  
http://www.st.com/content/ccc/resource/technical/document/application_note/e8/ca/05/a0/9e/ff/4e/69/DM00039787.pdf/files/DM00039787.pdf/jcr:content/translations/en.DM00039787.pdf
I have done something similar using the IHM02A1 attached to a Nucleo board (you just have to write a bunch of C code and use STM's libraries).
举报

周静

2019-1-16 16:02:25
请参阅
http://www.st.com/content/ccc/resource/technical/document/application_note/d7/dd/a8/f3/db/3e/49/6f/DM00082126.pdf/files/DM00082126.pdf/jcr:内容/翻译/ en.DM00082126.pdf
有关通信协议以及如何实现菊花链架构的详细信息,允许MCU通过单个SPI接口驱动多个器件。

以上来自于谷歌翻译


以下为原文




Please refer to
http://www.st.com/content/ccc/resource/technical/document/application_note/d7/dd/a8/f3/db/3e/49/6f/DM00082126.pdf/files/DM00082126.pdf/jcr:content/translations/en.DM00082126.pdf
for details on communication protocol and how to implement a daisy chain architecture allowing the MCU to drive multiple devices with a single SPI interface.
举报

更多回帖

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