摘要
为了实现一台PC机对多台以DSP为主处理器的运动控制器的串行通信,设计了一种用RS485总线串行的通信方案,实现了系统硬件接口,制定了包格式及通信协议,同时给出了部分DSP程序,然后在VC++的环境中利用MSComm控件实现了上位机软件的编程。实际应用结果表明,该协议能可靠得用于PC机与多台运动控制器间的串行通信,能很好得收/发运动控制指令和运动状态。
Aiming at realizing serial communication between single PC and several DSP-based motion controllers, the communication method based on RS-485 bus was designed, the system hardware interface was realized, packet format and communication protocol were formulated, meanwhile some DSP code was given, then in the VC + + environment, using MSComm control, the PC software programmed was realized. The result indicates that this protocol is reliable between single PC and several motion controllers and it can be a very good one to receive and send motion control command and motion situation.
出处
《机电工程》
CAS
2009年第11期91-93,共3页
Journal of Mechanical & Electrical Engineering