Data communication protocol based on dual CAN bus for digital servo drive
-
摘要: 分析了目前国外先进数控系统现场总线的通信特性,提出和定义了一种基于双CAN(Controller Area Network)总线的数控系统位置控制通信协议——CANsmc(CAN for Synchronous Motion Control).CANsmc采用主从式的双通道网络,由一个主站和最多61个从站组成,实现了带有广播同步电报的轮询式通信.协议以通用的CAN总线芯片为硬件基础,利用CAN芯片通信报文的描述符定义出CANsmc的通信报头.CANsmc共定义了3种电报类型:主站同步电报MST,主站数据电报MDT和伺服电报DT.主站通过主通道向从站发送MST和MDT,从站在收到MDT后通过从通道向主站反馈DT.最后,建立了一个CANsmc实验验证系统,用软件的方式实现了CANsmc协议,主站基于PC机ISA总线,从站是一个位控卡,可以实现位置、速度、回参考点等多种控制.实验证明,CANsmc总线可以满足先进工业机器人和数控机床控制系统的应用要求.Abstract: The communication performance of advanced field bus protocols used in NC systems was analysed, and a new data communication protocol was defined based on dual CAN(controller area network) for position control system in NC—CANsmc(CAN for synchronous motion control). CANsmc, defined as a master/slave topology, consisted of one master and at most 61 slaves with two communication channels. Its communication control was polling with synchronous telegram. The protocol was based on CAN chip, and CANsmc telegram head was defined with CAN telegram descriptor. Three types of telegram were transmited in CANsmc: MST(master synchronous telegram), MDT(master data telegram) and DT(drive telegram). Master transmited MST and MDT to slaves through the master channel, and slaves fed DT back to the master through the slave channel when they received their own MDT. Finally, a CANsmc prototype was built, and protocol was implemented by using software. The master was based on PC ISA interface and the slave was a position control unit with position control, speed control and zero return functions. The prototype system proves that CANsmc could meet the satisfiction of industrial robot and CNC machine control.
-
Key words:
- numerical control(NC) systems /
- servo amplifiers /
- synchronization /
- field bus /
- CANsmc
-
[1] 郇极,尹旭峰.基于数字伺服现场总线技术的开放式数控系统 .中国机械工程,1999,10(10):1132-1134 Huan Ji, Yin Xufeng. The open CNC based on digital servo field bus[J]. China Mechanical Engineering,1999,10(10):1132-1134(in Chinese) [2] International Electrotechnical Commission. IEC61491-1995 Electrical equipment of industrial machines serial data link for real-time communication between controls and drives[S] [3] 邬宽明.CAN总线原理和应用系统设计[M].北京:北京航空航天大学出版社,1996:20-21 Wu Kuanming. The CAN theory and application system design[M]. Beijing:Beijing University of Aeronautics and Astronautics Press,1996:20-21(in Chinese) [4] Cavalieri S. Meeting real-time constraints in CAN[J]. IEEE Transactions on Industrial Informatics, 2005, 1(2):124-135 [5] Rodrigues L, Guimaraes M, Rufino J. Fault-tolerant clock synchronization in CAN IEEE Proceedings-Real-Time Systems Symposium. Piscataway:IEEE, 1998:420-429 [6] Etschberger K. CAN-based higher layer protocols and profiles . Weingarten:IXXAT Automation GmbH, 1997 . http://www.ixxat.de/article can based higher layer protocols us, 10521, 8584.html
点击查看大图
计量
- 文章访问数: 3511
- HTML全文浏览量: 223
- PDF下载量: 1084
- 被引次数: 0