FF高速以太网现场总线的协议软件实现与应用研究
详细信息    本馆镜像全文|  推荐本文 |  |   获取CNKI官网全文
摘要
随着计算机技术、微电子技术以及通信技术的发展,工业领域中的信号传输
    从模拟信号传输转换到了数字信号传输,这使得现场设备之间传输信息的能力大
    大增强。也因此诞生了一门新的技术--现场总线技术。现场总线是应用在工业
    生产现场,用于实现在智能测量仪表、控制单元、执行机构和其他现场设备之间
    进行数字信息交换的通信网络。但工业控制领域需要一种高速廉价的网络。在过
    去几年里,以太网标准有了许多进步,特别是确定性、速度和信息优先级等方面。
    交换技术的快速发展大大消除了以太网应用于控制领域的障碍。目前许多组织和
    公司致力于将以太网与现场总线实现无缝连接,发展的趋势是以太网越来越向底
    层延伸。
    基金会现场总线(Founndation Fieldbus)在众多的现场总线中脱颖而出,
    成为技术上最先进的现场总线,FF总线的实现将促进我国自动化系统的数字化和
    智能化。基金会HSE现场总线是IEC61158通过的8种国际现场总线技术标准之一,
    HSE协议基于以太网和TCP/IP协议,从而HSE现场总线比基金会原先的H1总线的速
    度快得多。
    本论文主要研究丌发HSE协议,包括HSE协议栈中的SMPM模块的软件开发、
    SNTP模块的软件开发;并对基于HSE协议构建高速、实时的控制网进行了研究。
    本论文的主要工作包括如下几个方面的内容:
    1、 介绍了HSE协议体系结构,并主要分析了SMPM的运行原理,并用C语言实
    现了SMPM层协议。论文中给出了SMPM的编程框架以及一些关键算法的实
    现,经测试取得理想的结果。
    2、 研究分析了HSE协议中SNTP协议的原理,分析了SNTP协议的数据结构、
    算法实现,我们给出了编程框架,并用C语言实现了SNTP客户端软件,经
    测试取得理想的结果。
    3、 在介绍了传统HSE控制网络体系结构的基础上,根据以太网交换机的原理,
    我们设计了基于交换机的交换式HSE控制网络,并分析了交换机的延迟特
    性,根据实时性要求,给出了处理方案。在一些控制系统中,要求应用无
    
    
     浙江大学硕士学位论文 *
     线通信技术,我们以 HSE协议为基础并结合 IEEE802.口卜协议标准,设计
     了一种现场级无线通信协议栈,该协议能满足实时通信的要求。
With the fast development of computer technology, micro-electronics and communication technology, the analog signal transmission in the industry has transformed to the digital one. This enhances the interdevice communication, and
    therefore a new technology------fieldbus comes into existence. Fieldbus is a
    communication network used to interconnect field devices such as intelligent measurement instruments, control devices, executive machines. High speed and low cost network is needed in process control area. In the past several years, the standard of Ethernet had been improved much especially on determination, speed and information priority. Because of the rapid development of the exchanging technology, the impediment of adopting Ethernet in control area is eliminated greatly. Recently, many organizations and companies are working on the implementation of seamless connection of Ethernet and fieldbus. This developing tread makes Ethernet extend into lower layer.
    FF is coming to become the advanced fieldbus technology out of all fieldbus technologys. Implementation of FF protocol is helpful for the development of digital and intelligent automatic control system. FF-HSE Protocol developed by FF has become one of the eight parts of IEC61158 standard. HSE Protocol operates on Ethernet and TCP/UDP protocol, which makes HSE Fieldbus has much higher communication speed than tranditional FF-H1 Fieldbus.
    In this thesis, HSE Protocol is studied and implemented, which mainly includes the software accomplishment of SMPM module, the software accomplishment of SNTP module. Finally, Design high-speed and real-time industrial control network based on HSE Feildbus is also studied. In this dissertation, the main contributions are as follows:
    
    
    1) HSE Protocol architecture is introduced, and the principles of SMPM are mainly analyzed, then the software implementation of SMPM based on C Language is given. In this dissertation, we give the programming architecture of SMPM and the implementation of some of the critical algorithms. Satisfying results are got throuth testing.
    2) The principles of SNTP , which is one of the important modules in the HSE Protocol architecture, are studied, the data architecture and the algorithm implementation of SNTP are also analyzed. We give the programming architecture and the software implementation of the client software of SNTP based on C Language. Satisfying results are got through testing.
    3) Based on the introduction of traditional HSE control netwok, according to the principles of switch, we design switched HSE control network based on switch. In order to improve the real-time capability, after the analyzing of the characters of switch delay, some improvement methods are given . According to the wireless communication requests invoked by some industrial applications, we put forward a new field level wireless communication specifications. The new protocol is based on the FF-HSE specifications and integrate the IEEE802.11b standards. The new protocol can not only synchronize the wireless devices but also perform the real-time communication.
引文
[1] Fieldbus Foundation. FOUNDATIONTM Specification: FF-586 HSE Presence, FS1. 1
    [2] Fieldbus Foundation. FOUNDATIONTM Specification: FF-588 HSE Device Access(FDA) Agent, FS1. 1
    [3] Fieldbus Foundation. FOUNDATIONTM Specification: FF-581 System Architecture, FS1. 1
    [4] Fieldbus Foundation. FOUNDATIONTM Specification: FF-880 System Management, FS1. 1
    [5] Fieldbus Foundation. FOUNDATIONTM Specification : FF-803 HSE Network Management, FS1. 1
    [6] Fieldbus Foundation. FOUNDATIONTM Specification : FF-870 Fieldbus Message Specification, FS1. 1
    [7] Mintchell G A, Huitema C. Ethernet's in Control. Control Engineering, 2000, 47(5) : 46-54
    [8] Lee K B, Schneeman R D. Internet-Based Distributed Measurement and Control Application. IEEE Instrumentation&Measurement Magazine, 1999, 2(2) : 23-27
    [9] Vitturi S. On the Use of Ethernet at Low Level of Factory Communication Systems. Computer Standards and Interfaces, 2001, 23(4) : 267-277
    [10] Johnson D. Ethernet Edges Toward Process Control. Control Engineering, 1998, 45(12) : 66-72
    [11] Babb M. Ethernet Moves to the Factory Floor. Design News, 2000, 55(6) : 56-58
    [12] Bushnell L G. Networks and Control. IEEE Control System Magazine, 2001, 21(1) : 22-23
    [13] Maciel C D, Ritter C M. TCP/IP Networking in Process Control Plants. Computers&Industrial Engineering, 1998, 35(3-4) : 611-614
    [14] Industrial Ethernet: The Next Wild West? http://ethernet.industrial-networking.com/
    [15] Holmeide, Tor Skeie. Time Synchronization in Switched Ethernet. http://ethernet.industrial-networking.com
    [16] Philippe morel, Alain Croisier. A Wireless Gateway for Fieldbus. IEEE Network, 2(3) : 64-69, 1994
    [17] J.R. Pimentel. Communication Networks for Manufacturing. Prentice-Hall, NJ, 1990
    
    
    [18] IEEE Standards Dept. Draft Standard IEEE802. 11,Wireless LANs, 1996
    [19] Flatman. Wireless LANs:developments in technology and standards. Computing and Control Engineering Journal, 8. 1994
    [20] Mills D. Simple Network Time Protocol(SNTP)Version 4. Network Working Group RFC-2030, 1996
    [21] Mills D. Network Time Protocol(NTP) Version 3. Network Working Group RFC-1305, 1992
    [22] Stephen Hutnik, Michael Satterlee. Cisco CCIE Lab Study Guide. China Machine Press.
    [23] 陈启发. Simple Network Time Protocol. 高速网络专题报告. hllp://www.chu.edu.tw/~ierrv/chnc/network/report/paper/s08902041-sntp.htm
    [24] Part 11 :wireless LAN Media Access Control(MAC) and Physical Layer(PHY) Specification. ANSI/IEEE Std 802. 11, 1999 Edition
    [25] Tom's hardware guide. Wireless Local Area Network: An Introduction
    [26] P.More, R.Muralt, and J.D.Decotignie. A Wireless Extension For Fieldbus. Proceeding of IAIA'95, Nancy, France,1995.
    [27] J-P.Thomesse. Time and Industrial Local Area Network. Proceeding of Compeuro 1993, Paris, 1993
    [28] Ph.Morel, A.Croisier and J-D.Decotignie. Requirements for Wireless Extensions of a FIP Fieldbus. Swiss Federal Institute of Technology, Computer Science Department.
    [29] S.Cavalieri and D.Panno. A Novel Solution to Interconnect Fieldbus Systems using IEEE Wireless LAN Technology. University of Catania, Institute of Information and Telecommunications, Elsevier Science 1998.
    [30] George Thomas. Looking Deeper into Ethernet, http://ethernet.industrial-networking.com
    [31] George Thomas. Improving the Performance of Ethernet Networking. Industrial Ethernet Book 6 Articles.
    [32] Oyvind Holmeide and Tor Skeie. Time Synchronization in Switched Ethernet. Industrial Ethernet Book 7 Articles.
    [33] Andrew S.Tanenbaum.计算机网络.清华大学出版社,1997
    [34] Douglas E.comer.TCP/IP 网络互连技术卷1、 2、 3. 清华大学出版社,1998
    [35] W.Richard Stevens.UNIX网络编程卷1、 2. 清华大学出版社,1999
    
    
    [36] 蒋东兴.Windows Sockets网络编程大全.清华大学出版社,1998
    [37] 阳宪惠.现场总线技术及其应用.清华大学出版社,1999
    [38] William Stallings.数据与计算机通信.电子工业出版社,2000
    [39] 谢希仁.计算机网络.电子工业出版社,1999
    [40] 顾洪军.工业企业网与现场总线技术及应用.人民邮电出版社,2002 [41] 郑文波.控制网络技术.清华大学出版社,2001
    [42] 谢谦.计算机网络实验教程.电子工业出版社,2000
    [43] Stefan Boecking.面向对象的网络协议.机械工业出版社,2000
    [44] 陈远森,邓可.UNIX网络编程技术.中国水利水电出版社,2000
    [45] 基金会现场总线协议软件技术报告.中国科学院沈阳自动化研究所.2000年6月
    [46] 谭浩强.C程序设计.清华大学出版社,1998
    [47] ISO/IEC8802局域网标准: a) IEEE802. 1(综述和体系结构) b) IEEE802. 2(逻辑链路控制) c) IEEE802. 3(CSMA/CD媒介访问方法利物理层规范) d) IEEE802. 11b(无线以太网技术规范)
    [48] 缪学勤.现场总线技术的最新进展.自动化仪表,2000,21(6)
    [49] 缪学勤.现场总线最新进展与我们的对策.机械工业标准化与质量,2000,21(6)
    [50] 郑萍,宋文.基金会现场总线技术及其产品开发.工业控制计算机,2001,14(1)
    [51] 施一明,冯冬芹.现场总线的标准与发展.电工技术杂志,2000,(9)
    [52] 徐垲冬.基于以太网的工业控制系统.信息与控制,2000,29(4)
    [53] 龙姿平,万曼影.FF现场总线概述,自动化与仪表,1999,14(4)
    [54] 金建祥,董雁适.FF现场总线互操作性原理.冶金自动化,1999,23(4)
    [55] 冯军.现场总线物理层协议概述.工业控制计算机,1996,(6)
    [56] 斯可克.高速以太网现场总线简介.世界仪表与自动化,2000,(6)
    [57] 戴蓉.FF现场总线控制系统.工业控制计算机,1999,12(5)
    [58] 张大波.现场总线体系结构研究及通信栈设计.东北大学学报,1998,(4)
    [59] 陈平,张安年,工业以太网在现场总线控制系统中的应用.洛阳工学院学报,2000,(21)
    [60] 郑萍.基于Ethernet的全开放工业控制网络.工业仪表与自动化装置,2001,(3)
    [61] 王永红,马欣.控制网与信息网的集成技术.基础自动化,2001,(10)
    
    
    [62] 张大波.一种现场总线设备通信栈体系结构研究及应用层的设计与实现.小型微型计 算机系统,1999,(4)
    [63] 杨清宇,施仁.基于因特网的工业控制网络体系结构研究.信息与控制,2002,31(10)
    [64] 沈钢.一种能保证传输实时性和可靠性的工业无线通信网络编解码技术.信息与控制, 2002,31(10)
    [65] 曾鹏,于海斌.现场无线通信协议研究.信息与控制,2002,31(10)
    [66] 高大征.以太网交换技术解决局域网的瓶颈问题.齐齐哈尔大学学报,2000,(6)
    [67] 赵宏.以太网交换技术.辽宁大学学报,2000,27(2)
    [68] 李嘉.引入以太网是现场总线技术发展的必然.自动化仪表,2001,(5)
    [69] 陈积明,孙优贤.工业以太网的研究现状及展望.化工自动化及仪表,2001,28(6)
    [70] 宰守刚,孙优贤.交换机在工业以太网中的应用探讨.化工自动化与仪表(尚未发表)
    [71] 贾东耀.工业控制网络结构的发展趋势.工业仪表与自动化装置,2002,(5)
    [72] 钟皓.Windows环境下TCP/IP网络编程及应用.计算机工程,1997,(11)
    [73] 周榕.UNIX下Socket编程.科技交流,2001,(6)
    [74] 伊桂杰,邓沽.无线局域网关键技术与发展综述.电视技术,2002,(2)
    [75] 孟煜,金心宇.基于高速以太网的基金会现场总线通信会话层的设计与实现.工业控制 计算机,2002,15(7)
    [76] 张伟.无线局域网安全性研究.计算机工程,2002,28(1)
    [77] 冯博琴,徐景民.计算机时间同步问题的研究.西安交通大学学报,1999,33(5)
    [78] 贺鹏,吴海涛.分布式系统的时间同步算法研究与应用.计算机应用,2001,(12)
    [79] 姜华,吴俊,苏宏业.FF高速以太网现场总线的时钟同步与软件编程.机电工程,2002, (8)
    [80] 姜华,吴俊,冯冬芹.FF高速以太网现场总线的时钟同步及其体系结构研究.计算机 工程,2003,(8)
    [81] 李蓉,方维坚.分布式容错时间同步化系统的误差分析.微型机与应用,2000,(3)
    [82] 贺鹏.分布式数据采集与监控系统的时间同步及其软件编程.计算机工程,2000,26 (7)