一种基于标准以太网的实时同步网络研究
详细信息    本馆镜像全文|  推荐本文 |  |   获取CNKI官网全文
摘要
以太网已在互联网、办公网络和企业管理网络等领域获得了广泛的应用,其技术日臻成熟。以太网被广泛接受的事实,使其具有了在工业控制系统中应用的趋势和可能。工业以太网是将以太网技术应用到工业控制系统,并对其进行改进,以适应于工业控制系统需求而产生的一种控制网络技术。和现场总线相比具有安装成本低、传输速率快、支持服务类型多、用户基础广泛等突出的优点。但是目前工业以太网处于发展阶段依然存在许多不适应现场应用的缺陷,例如网络通讯协议缺乏实时性和确定性、缺乏通用的应用层协议以及网络节点间难以实现同步性等问题。
     以高性能的运动控制模型分析得出网络化运动控制系统需要通信数据的高性能实时传输、以及快速的同步运动等要求。本文综述了以太网的实时性和同步性研究现状,分析目前几种常用的用于运动控制的工业以太网络,参考IEEE802.3协议以及国家标准《控制与驱动装置间实时串行通信数据链路》,提出了一种基于标准以太网的实时同步网络,给出了网络拓扑结构和工作方法。根据ISO/OSI七层模型,建立了实时同步网络的互连参考模型;制定了实时同步网络的报文结构及内容;给出了实时同步网络的通信时序、同步机制等。
     分析了MAC_IP的工作原理,并划分各功能模块,选用硬件描述语言VerilogHDL,在开发工具QuartusⅡ设计了符合IEEE802.3协议的MAC_IP核,为以后符合实时同步网络的MAC_IP核的开发打下了坚实的基础。并对顶层模块、发送模块,接收模块、MAC控制模块以及物理层和主机(MCU)的接口以及CRC、CSMA/CD、Hash表等算法进行了详细说明。
     具有以太网通讯能力的控制模块是开发工业以太网控制系统的基础,本文以基于实时同步网络的电机控制模块为例,详细地介绍了电源电路设计、以太网PHY接口设计、spi总线扩展接口设计、控制单元(MCU)、FPGA开发以及电机控制接口等,并给出了FPGA中QEP电路设计,说明了具有网络功能的控制模块的开发方法。并将开发的MAC IP核经编译综合后,下载到该电机控制模块中,经测试无错包、丢包现象,验证了该实时同步网络的开发的正确性。
     最后对全文进行总结,并对实时同步网络下一步的研究工作如控制器端实时网络应用程序的解决方案、设备互操作性及应用层协议兼容性研究、组态应用软件的开发、开发基于该实时同步的具体应用等提出了自己的设想。
Ethernet has been widely accepted in information domain. It is possible to use Ethernet in industrial control systems. Industrial Ethernet is a kind of field bus technology which applies Ethernet in industrial field environment. Ethernet must be improved in order to meet the requirements of industrial control systems. It has many merits such as low installation cost, high communication speed, supporting variable services and large customer quantity. However Industrial Ethernet is in its developing stage, there still exists flaws that id unsuitable for industrial applications: lack of determinism and real-time property, no unified application layer protocol and lack of synchronization between net nodes.
     It can be found that the motion control network system has the requirements of the high performance real-time data transition and fast synchronous motion from the analysis of high performance motion control model. It is summarized that the previous study about real-time and synchronization of Ethernet and analyzed a few common industrial Ethernets used for motion control. On reference of the IEEE802.3 protocol and China standard Electrical equipment of industrial machines--Serial data link for real-time communication between controls and drives, an innovative real-time and synchronous control network over Ethernet is presented. A bus topology and working method are applied to the net structure. According to ISO/OSI model, reference model for network interconnection is established. The message structure and contents of real-time and synchronous network are defined. The network timing and synchronization mechanism are also provided.
     The working principle of MAC_IP is analyzed and the key functional modules of MAC layer are given in this thesis. The implementation of IEEE802.3 MAC (Media Access Control) function is designed based on Altera's FPGA in this dissertation. Verilog HDL is used for this project. It lays the foundation for the design the MAC_IP that fulfills the real-time and synchronous network protocol. It also describes that the solutions to such as Top module, Tx Module, Rx module, MAC-control and interface between PHY, MAC and host, arithmetic for CRC, CSMA/CD, and Hash Table in this thesis.
     Control node with network interface is the basic element of network control system. With analysis of actual control system requirements, the motor control node is developed on real-time and synchronous network which includes power design, the Ethernet PHY interface design, SPI interface design, control unit (MCU), FPGA design and motor control interface. The QEP circuit is also designed in FPGA. The develop method of control model with network interface is illustrated. The IP core's synthesis and assemble ate based on develop tool Quartus II. At last, design module is downloaded in motor control model. It is testified the feasible of the development of real-time and synchronous network by the test of no missing packet and no error packet.
     Finally, it presents some conclusion of the dissertation and expresses opinions on future work about real-time and synchronous network. It includes the solution of how to develop real-time software in the controller, device interoperability techniques and application layer protocol compatibility, the development of configuration application software and the development of actual application object based real-time and synchronous network.
引文
1阳宪惠,现场总线技术及其应用,清华大学出版社,1999.
    2西门子(中国)有限公司,实时通信-工业以太网进入现场级通信的钥匙.工厂自动化,2006.11,p30-33
    3EtherCAT-用于控制自动化技术的以太网,www.ethercat.org.cn
    4Open DeviceNet Vendor Association and ControlNet International,OVDA;Volume2;Ethernet/IP Adaptation of CIP,April 26,2001
    5Fieldbus Foundation.FOUNDATIONTM Specification;System Architecture.Verl.1.Austin,Texas;Fieldbus Foundation,November 2000
    6PROFIBUS Foundation.PROFIBUS Technology and Application;System Description,October 2002
    7Schneider Electic,Open Modbus/TCP Specification,Ver1.0,March 1999
    8叶莘Ethernet PowerLink-实时的工业以太网.自动化博览43-45,2004.4
    9Ronald Larsen,SERCOS Ⅲ的实时性,软件,2007.12,p2
    10SynqNet-优于以太网的高性能运动控制系统,http;//www.synqnet.org.cn
    11EPA实时以太网现场总线解决方案,http;//www.epa.org.cn/solutionlist.asp
    12工业以太网市场潜力无限,http;//www.gkong.com/htm1/news/2006/4/5665.Html
    13王加军、齐冬莲,运动控制系统的发展与展望,电气时代,2004.10,p54-56
    14 Mario Alves,Eduardo Tovar,Francisco Vasques,Ethernet goes Real-Time;a survey on research and technological developments,Technical Report HURRAY-TR-0001,Polytechnic Institute of Porto-School of Engineering(ISEP-IPP),January,2000
    15Institute of Electrical and Electronics Engineers,IEEE Standard for Information Technology-Telecommunications and information exchange between systems—Local and Metropolitan Area Networks-Specific Requirements-Part3;Carrier Sense Multiple Access with Collision Detection(CSMA/CD)Access Method and Physical Layer Specifications,IEEE Computer Society,2002.
    16刘晓辉等,以太网组网技术大全,北京;清华大学出版社,2001
    17W.Zhao,K.Ramamritham,Virtual Time CSMA Protocals for Hard Real-Time Communications.IEEE Transactions on Software Engineering,Vol.13,No.8,1987,p938-952
    18G.Le Lann and N.Rivierre,Real-Time communications over broadcast networks;the CSMA-DCR and the DOD-CSMA-CD protocols.Research report 1863,INRIA,Mar 1993
    19J.F.Kurose,Controlling window-protocal for time-constrained communication multiple-access networks.IEEE Transactions on Communications,Vol.36,No.1,1983,p41-49
    20W.Zhao,J.Stankovic,K.Ramamritham.A window protocol for transmission of time constrained messages.IEEE Transactions on Computer,Vol.39,No.9,1990,p1186-1200
    21ISO/DIS 11898,Road vehicles-interchange of digital information controller area network(CAN) for high speed communication, 1991.
    22. K.Tindell, A. Burns, A. Wellings. An extendible approach for analyzing fixed priority hard Real-Time tasks. Real-Time Systems, Vol. 6, No. 2, 1994,pl33-151
    23. K. M. Zuberi, K. G. Shin. Non-preemtive scheduling of messages on controller area network for Real-Time control application. Proceeding of The First IEEE Real-Time,1995
    24. Institute of Electrical and Electronics Engineers. IEEE Standard for Information Technology-Telecommunications and Information Exchange between Systems-Local and Metropolitan Area Networks-Specific Requirements-Part 5:Token Ring Access Method and Physical Layer Speifications, 1998. IEEE Std. 802. 5-1998, ISO/IEC 8802-5:1998E
    25. J. K. Strosnider, T. Markchok and J. Lehoczky, Advanced Real-Time scheduling using the IEEE802.5 token ring, Proceedings of the 9th IEEE Real-Time System Symposium, 1998,p42-52
    26. C. Venkatramani, The design, implementation and evaluation of RETHER:a Real-Time Ethernet protocol. PhD thesis, State University of New York at Stony Brook, Jan. 1997
    27. C. Venkatramani and T. Chiueh, supporting Real-Time traffic on Ethernet. Proceedings of the 15th IEEE Real-Time Systems Symposium, San Juan, Puerto Rico, December 1994, p282-286
    28. C. Venkatramani and T. Chiueh, Design, implementation and evaluation of a software based Real-Time Ethernet protocol. Proceedings of the conference on Applications technologies, architectures, and protocols for computer communication, Cambridge, MA, USA, August/September. 1998, p27-37
    29. D. W. Pitty, J. R. Malone, D. N. Smeed, S. K. Baner jee, and N. L. Lawrie. A realtime upgrade for Ethernet Based factory; networking.proceedings of IEEE IECON 21st International Conference on Industrial Electrics, Control, and Instrumentation, Vol. 2, Orlando, FL, USA, November 1995, p1631-1637
    30. Institute of Electrical and Electronics Engineers. IEEE Standard for Information Technology-Telecommunications and Information Exchange between Systems-local and Metropolitan Area Networks-Specific Requirements - Parts 4:Token-Passing Bus Access Method and Physical Layer Specifications, 1990. IEEE Std. 802. 4-1990, ISO/IEC 8802-4:1990
    31. J. W. M. Pang and F. A. Tobagi, Throughput analysis of a timer controlled token passing protocol under heavy load. IEEE Transactions on Communications, Vol.37, No. 7, July 1989, p694-702
    32. Ferdy Hanssen, Pierre G. Jansen, Real-Time communication protocols: an Overview, http://citeseer. 1st. psu. edu/
    33. Kopetz, A. Damm, Ch. Koza, M. Mulazzani, W. Schwabl, Ch. Senft, R. Zailinger, Distributed fault-tolerant Real-Time systems:The MARS Approach, IEEE Micro, Vol. 9, No. 1, February 1989, p25-40.
    34. D. L. Mills, Network time protocol, Network Working Group, September 1985
    35F.Cristian and C.Fetzer,Fault-tolerant external clock synchronization,Proceedings of the 15th IEEE International Conference on Distributed Computering Systems,Los Alamitos,CA,USA,May 30-June 2 1995,p70-77
    36赵英,潘立登,异步环境中基于时钟精度差的时钟同步,计算机工程,Vol.30,No.18,2004,p38-40
    37M.paulitsch,W.Steiner,Fault-tolerant clock synchronization for embedded distributed multi-cluster systems,Euromicro Conference on Real-Time Systems(ECRTS03),Porto,Portugal,July,2003
    38Hermann Kopetz,Astrit Ademaj,Alexander Hanzlik,Clock-state and clock-rate Correction in fault-tolerant distributed systems,The 25th IEEE International Real-Time Systems Symposium,Lisbon,Portugal,Dec.2004
    39F.B.Schneider,understanding protocols for byzantine clock synchronization.Research Report,Department of Computer Science,Cornell University,Ithaca,NY,USA,August 1987,p87-859
    40L.Lamport and P.M.Melliar-Smith,Synchronizing clocks in the presense of faults,SRI International Report,1982
    41L.Lamport and P.M.Melliar-Smith,Byzantine clock synchronization,Proceedings of the 3rd ACM Symposium on Principles of Distributed Computing,1983
    42J.Lundelius and N.Lynch,A new fault-tolerant algorithm for clock synchronization,Proceedings of the 3rd ACM Symposium on Principles of Distributed Computing,1983
    43J.Y.Halpern,B.Simons,R.Strong,and D.Dolev,Fault-tolerant clock synchronization,Proceedings of the 4rd ACM Symposium on Principles of Distributed Computing,1983
    44Butler,W.Ricky,A survey of provably correct fault-tolerant clock synchronization Techniques,NASA TM-100553,February 1988
    45D.Dolev,N.A.Lynch,S.S.Printer,E.W.Stark and W.E.Weihl,Reaching approximate agreement in the presence of faults,Proceedings of the 3rd Symposium on Reliability in Distributed and Database Systems,October 1983,145-154
    46M.M.Azevedo and D.M.Blough,Software-based fault-tolerant clock synchronization for distributed UNIX environments,Department of Electrical and Computer Engineering,University of California Irbine Technical Report ECE 94-03-01,March,1994
    47M.Pfluegl,Clock Synchronization in fault-tolerant systems,PhD Thesis,University of California,Irvine,1992
    48IEC SC65C,Digital Data Communications for Measurement And Control-Fieldbus For Use In Industrial Control Systems,Part 1;Introduction to IEC 61158 series,1999
    49匀利军等,运动控制网络的研究现状及发展趋势,控制工程,2006.7,p289-293
    50王廷尧等,以太网基础(三);以太网物理层性能标准规范,光通信技术2002.4,p57-58
    51徐扬等,并行CRC电路HDL代码的快速生成.CCIC 2004,p28-32
    52夏宇闻,Verilog数字系统设计教程,北京;北京航空航天大学出版社,2004
    53IEEE,Std 802.3-2002,IEEE Standards,2002
    54Igor Mohor,Ethernet IP Core Design Document,http;//www.opencores.org,2002
    55Igor Mohor,Ethernet IP Core Specification,http;//www.opencores.org,2002
    56Xilinx,Ethernet Media Access Controller(EMAC)Specification,March 28,2002
    57宋廷强等,SOC设计中WISHBONE片上总线的设计与开发,青岛科技大学学报,2003.5,p439-442
    58陆洪毅等,基于Wishbone的SOC接口设计,计算机工程与科学,2003.5,p91-93
    59刘和平,TMS320LF/LC240xA DSP C语言开发应用.北京;北京航空航天大学出版社,2003,p1-230
    60杨恒,李爱国,王辉.FPGA/CPLD最新实用技术指南,北京;清华大学出版社,2005,p1-23
    61于枫,张丽英,廖宗建.ALTERA可编程逻辑器件应用技术,北京;科学出版社,2004,p1-98
    62叶东等,基于FPGA的多路光电编码器数据采集系统,传感器与微系统,2006.5,p45-47
    63许俊,802.3快速以太网MAC层研究及其在FPGA的实现,电子科技大学硕士学位论文,2005.5,p72-78

© 2004-2018 中国地质图书馆版权所有 京ICP备05064691号 京公网安备11010802017129号

地址:北京市海淀区学院路29号 邮编:100083

电话:办公室:(+86 10)66554848;文献借阅、咨询服务、科技查新:66554700