基于Modbus/RTU协议转换器的监控器网络查询控制系统
详细信息    本馆镜像全文|  推荐本文 |  |   获取CNKI官网全文
摘要
目前,现场总线技术在工业生产的控制系统设计中已得到了广泛的应用,智能终端和网络相结合的控制方式逐渐在取代传统的集散控制方式和计算机分层控制方式。现场总线技术是过程控制、自动化仪表、计算机网络三种技术的综合发展。然而,多种总线共存、通信协议互不兼容是一个普遍存在的问题。
     本文在研究现场总线通信协议——MODBUS协议——的基础上,针对天威集团远程监控项目中PC机与现场设备通信协议不同的问题,设计开发了一种基于ARM+uCLinux嵌入式平台的转协议服务器和基于Windows平台的远程查询端。本系统主要采用了嵌入式、SOCKET和多线程技术,成功实现了上下位机之间的数据交换。而且解决了RS485接口实际驱动设备的数量远小于理论值所造成的问题。本系统已经是一个完整的转协议远程监控系统,并且在实际项目中进行了测试,实验证明,此系统具有运行可靠、成本低的优点。
     最后,本文对用Web实现本系统的方式进行了较为深入地探讨。并提出了一种针对本项目特点的、使用C语言实现的Web Server方案。
Field bus technology has been widely used in control system design of industrial manufacturing nowadays. The traditional mode of distributed control and computer layered control was gradually substituted by the mode of intelligent terminal and network control. This technology combined the development of process control, automation instrument and computer network technology. Howerver, the existing of multi-bus and incompatibilities in the communication protocol was a common problem.
     On the basis of the study fieldbus communication protocol——MODBUS protocol, aim at the remote monitoring project of the TianWei Group, whose communication protocol has differences between the PC and field devices, a communication protocol conversion processor based on ARM+uCLinux Embedded Platform and an Remote-inquiry terminal based on Windows platform were presented. Embedded system, SOCKET, multi-threading technology were used and data exchange freely between PC and field devices were realized. Futhermore, a problem that the the number of monitoring equipment one RS485 interface can drive in practice is much less than that in theory, can be resolved in this way. This system is a complete protocol-conversion remote monitoring system, and has been tested in the actual project. Practice has proved that this system is reliable and low-cost.
     At last, an in-depth discussion on the way of realizing the system by Web was given. And considering the characteristic of the project, a Web Sever scheme relized by C Language was proposed.
引文
[1] 罗蕾 . 嵌入式实时操作系统及应用开发. 北京:北京航空航天大学出版社,2005.3-8.
    [2] 吕京建.嵌入式处理器:嵌入式系统的心脏[J].世界电子元器件,1999,(2):21-23.
    [3] 管金库 .基于μC/OS-II 的嵌入式 Modbus-TCP/IP 协议转换网关的设计与实现: [硕士学位论文] .重庆:重庆大学,2005.
    [4] 王田苗 . 嵌入式系统设计与实例开发(第 2 版). 北京:清华大学出版社,2003.30-33.
    [5] 许海燕,付炎 . 嵌入式系统技术与应用. 北京:机械工业出版社,2002.8-17.
    [6] 张辉宜,陶陶,周秀丽.基于嵌入式处理器的电力参数检测技术[J].电测与仪表,2006,43(8):63-67.
    [7] 冯继超.面向二十一世纪的嵌入式系统及发展方向[J].工业控制计算机,2001,14(5):1-2.
    [8] 阳宪惠 . 现场总线技术及其应用[M] . 北京:清华大学出版社,1999.40-45.
    [9] 傅家林 .PROFIBUS 和 CAN 现场总线协议分析与桥接器的实现: [硕士学位论文] .北京:北京交通大学,2005.
    [10] 张发斌 .现场总线协议转换的研究与实现: [硕士学位论文] .贵阳:贵州工业大学,2006.
    [11] 侯蓉晖 .现场总线协议分析及网络模型研究: [硕士学位论文] .西安:西北工业大学,2004.
    [12] 侯彦华 .现场总线数据传输协议的研究与探讨: [硕士学位论文].北京:北京邮电大学,2006.
    [13] 吴学文,王新光,周金陵.基于 Modbus 通信协议的水闸计算机监控系统[J].计算机工程,2005,31(13):195-197.
    [14] 胡平平,王东兴,王晶杰.ModBus 协议在无线监控系统中的应用[J].电气自动化,2006,28(1):56-59.
    [15] Modbus-IDA.MODBUS Application Protocol Specification V1.1b[EB/OL]. http://www.mod bus.org/, 2006-2-16.
    [16] 国家质量监督检验检疫总局.GB/Z, 19582.1-2004,基于 Modbus 协议的工业自动化网络规范第 1部分:Modbus应用协议[S].北京:中国标准出版社,2004.
    [17] 国家质量监督检验检疫总局.GB/Z, 19582.2-2004,基于 Modbus 协议的工业自动化网络规范第2 部分:Modbus 协议在串行链路上的实现指南[S].北京:中国标准出版社,2004.
    [18] 国家质量监督检验检疫总局.GB/Z, 19582.3-2004,基于 Modbus 协议的工业自动化网络规范第3 部分:Modbus 协议在 TCP/IP 上的实现指南[S].北京:中国标准出版社,2004.
    [19] Internet.Moving industrial protocols to Ethernet TCP/IP[EB/OL]. http://www.macrolinx.com/ document/rel/industry-Ethernet-Control-Solutions.pdf, 2004-11-5.
    [20] Internet. Transparent Modbus/TCP Filtering with Linux[EB/OL]. http://modbusfw.sourceforge.net/, 2004-11-5.
    [21] MODBUS.ORG.MODBUS MESSAGING ON TCP/IP IMPLEMENTATION GUIDE1.0[EB/OL].http://www.electroind.com/pdf/Modbus_messaging_on_TCPIP_implementation_g uide_V11.pdf , 2002-10-15.
    [22] W Wayne.What is Embedded Computing[J].IEEE-computer,2002,35(l):136-137.
    [23] 陈闺中.Linux 在嵌入式操作系统中的应用[J].同济大学学报,2001,29(5):564-566.
    [24] 霍妍,孟凡荣.Linux 运用于嵌入式系统的技术分析[J].计算机系统应用,2004,22(8):4-6.
    [25] 贾红伟,叶文来.嵌入式操作系统与嵌入式 Linux[J].吉林师范大学学报(自然科学版),2005, (3):97-99.
    [26] Lennon A.Embeddeding Linux[J].IEEE Review,2001,47(3):33-37.
    [27] 王亚军,刘金刚.Linux 运用于嵌入式系统的技术分析[J].计算机应用研究,2005,20(5):102-105.
    [28] B Rau,Ramakrishna,S M Schlansker.Embedded Computer Architecture and Automation[J]. IEEE-computer,2001,34(4):75-81.
    [29] J Goodaere, N A Sloss AN.Parallelisn and the ARM instruction set arehiteeture[J].Computer,2005,38(7):42-50.
    [30] Terrasa Andres, Garcia-Fornes Ana, J Botti Vicente. Flexible Real-Time Linux:A Flexible Hard Real-Time Environment[J].Real-Time Systems,2002,22(1):151-173.
    [31] Barabanov, M Yodaikenv.Introducing real-time Linux[J] .Linux Journal ,1997, (34):19-23.
    [32] 陈坚华 .基于 ARM7TDMI 的 uClinux 移植: [硕士学位论文].杭州:浙江大学,2003.
    [33] Philip Koopman.Embedded System Design Issues.http://www.ece.cmu.edu/~koopman /icc d96 /s lides/slide0.html , 1996-9-15.
    [34] 张凌,刘擎.Linux 嵌入式系统的上层应用开发[J].计算机应用,2002,22(7):40-53.
    [35] 金西,黄汪.嵌入式 Linux 技术及其应用[J].计算机应用,2000,20(7):51-54.
    [36] 刘伟,李小武 . CGI 技术全面接触. 北京:清华大学出版社,2001.10-16.
    [37] 韩光洁,王金东.基于 Web 管理的 Embedded Web Server 研究与实现[J].东北大学学报,2002,(11) :1021-1024.

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

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

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