基于高速智能化现场总线的嵌入式PC控制系统研究
详细信息    本馆镜像全文|  推荐本文 |  |   获取CNKI官网全文
摘要
本文针对目前工业现场控制系统存在的不足,提出了基于高速智能化现场总线的嵌入式PC控制系统,该系统具有高速、智能化的通讯能力和可以直接嵌入到工业设备中的小巧体积。
     首先通过分析控制系统的发展趋势,简述了随微电子技术和个人计算机的发展而出现的各种现场总线和嵌入式计算机系统。随后确定在控制系统中使用CAN总线作为现场总线网络,使用嵌入式的PC/104主机作为控制计算机。
     然后具体实现了该控制系统。主要包括PC/104总线的CAN适配器、CAN总线网络模型和通信协议的设计。在硬件设计上,通过使用可编程的CPLD器件取代体积和功耗都太大的传统数字电路,使用集成了MCU和CAN控制器的SoC芯片来完成CAN的主要操作,总线收发上利用光电隔离电路提高抗干扰性。CAN适配器的驱动设计借助了第三方的工具软件WinDriver,并将驱动封装为ActiveX控件以便于用户应用程序的调用。此外,还根据国际标准化组织(ISO)提出的开放系统互连参考模型(OSI/RM)建立了控制系统的网络模型,并且定义了模型中的应用层协议。
     最后,说明了该系统在纺织机械自动清纱控制系统中的一个应用实
    
     西安理工大学硕士学位论文
    例,并就这个应用实例,对系统的通讯速率、丢报率、出铅率以及响应
    时间等参数作了详细测试。测试表明系统具有极好的性能,能够在 100
    米左右的范围内挂接 100个以上的控制节点并以 500kbps的速率通信,
    系统响应时间小于 lins,出错率和丢包率均低于万分之一,囚此该系统
    在工业自动化中具有很大的应用价值。
Aiming at the shortage of the present control system at the industry scene, an embedded PC control system based on fieldbus is presented. This system has high-speed smart communication ability, and it is so small that the system can be embedded in industrial equipment.
    Firstly, by analyzing the evolution of control system, this paper introduces a variety of fieldbuses and embedded PCs, which appear with the development of microelectronics and personal computer. In the system, CAN bus is used as fieldbus and PC/104 computer as the control computer.
    Secondly, the control system centering CAN bus and PC/104 is realized. The CAN communication adapter of PC/104, the network model and communication protocol of CAN bus are explained briefly. In the design of the hardwares, the CPLD is used in the adapter, instead of the discrete devices, to reduce the circuits' area and power. Moreover the system on chip (SoC) integrated with high-speed microprocessor and CAN controller is applied to complete the operation of CAN bus, and the circuit of photoelectric isolation enhances the ability of anti-jamming. Using WinDriver, the Windows device driver of the adapter is developed. To obtain the easy application, the driver is encapsulated as an ActiveX control. The network model is built on the Reference Model of the Open System Interconnection (OSI/RM) proposed by the International Standardization
    
    
    
    Organization (ISO), and the protocol of application layer in the model is defined.
    Finally, the paper gives an example of the system used in the automatically spinning control system in the machine. Many essential parameters were tested, which includes communication speed, the percentage of errorness or lost packet, and the response time etc. All prove that the system has very good performance and great value in application.
引文
[1] 阳宪惠.现场总线技术及其应用.北京:清华大学出版社,1999:8-10
    [2] 潘新民,王燕芳.微型计算机控制技术.北京:人民邮电出版社.1999:11-13
    [3] 刘乐善,叶济忠,叶永坚,微型计算机接口技术原理及应用.武汉:华中理工大学出版社,1998:55
    [4] Robert Bosch GmbH.CAN Specification Revision 2.0,1991:4-7
    [5] 邬宽明.CAN总线原理和应用系统设计.北京:北京航空航天大学出版社,1996:18-22
    [6] PC/104 Consortium.PC/104-Plus Specification Version 1.1,June 1997:1-2
    [7] 潘新民,王燕芳.微型计算机控制技术.北京:人民邮电出版社.1999:306-315
    [8] 廖祥学.基于RS-485总线的产品质量检测控制系统.电子技术.29(8).2002:8-10
    [9] 阳宪惠.现场总线技术及其应用.北京:清华大学出版社,1999:309
    [10] 李晓军,孙红辉,张振仁.基于CAN总线的温度、压力控制系统.仪表技术与传感器.8(10):2002:38-40
    [11] 孙立辉,原亮.基于CAN总线的双机冗余系统设计方法.单片机与嵌入式系统应用.2(09),2002:33-35
    [12] 尹建华,张惠群.由CAN总线构成的分布式清纱机控制系统.单片机与嵌入式系统应用.2(01),2002:55-58
    [13] 高玉芹.CAN总线分布式系统适配卡和控制单元设计.单片机与嵌入式系统应用.2(03),2002:33-36
    [14] 周凯,毛德柱,刘郁,陶真.基于CAN总线的智能寻位制造系统.电子技术应用.28(4),2002:33-35
    [15] 欧德翔,汪至中.基于CAN总线的流光放电烟气脱硫电源集散控制系统的设计.电子技术应用.28(5),2002:33-34
    
    
    [16] 张志刚,王宪杰.MCB-1电力测量控制仪中CAN总线通讯模板的设计及编程.电测与仪表.39(1),2002:46-48
    [17] 张海波,赵伟.现场总线测控领域中的几个关键问题.电测与仪表.39(3),2002:5-8
    [18] 刘彤,王美玲,付梦印.基于PC104的通信控制器.电测与仪表.39(5),2002:37-8
    [19] 高胜法,王金富,刘平.CAN总线通讯适配卡的设计与实现.国外电子元器件.1,2003:68-70
    [20] 孔慧,刘桃英.CAN总线在分布式生物发酵过程控制系统的应用.仪表技术与传感器.3,2002:40-42
    [21] Robert Bosch GmbH.VHDL Reference CAN User's Manual Revision 2.2,1999
    [22] 胡昌银,胡基士.基于PC/104总线的嵌入式以太网卡设计.单片机与嵌入式系统应用.2(08),2002:64-66
    [23] Evalue Technology Inc. Applied computing solutions. http://www.evalue-tech.com, Vol:2002b: 1-7
    [24] Philips Semiconductors. SJA1000 Stand-alone CAN Controller. Philips Data Sheet, 1999
    [25] Robert Bosch GmbH. C CAN User's Manual Revision 1.2., June 2000
    [26] CYGNAL Integrated Products Inc. C8051F040/1/2/3 DataSheet, 2002:4-7
    [27] 李明峰.PC机与CPLD通信问题的研究.单片机与嵌入式系统应用.2(08),2002:19-21
    [28] 陈意军,王迎旭.应用CPLD实现交通控制系统芯片设计.单片机与嵌入式系统应用.2(09),2002:64-66
    [29] 肖小锋,盛文,李演仁.用CPLD实现单片机与ISA总线并行通信.单片机与嵌入式系统应用.2(06),2002:30-32
    [30] 樊京,郭俊杰.单片机+CPLD结构体系在电子设计中的应用.单片机与嵌入式系统应用.2(06),2002:57-59
    
    
    [31] 李明峰,林平,张仲超.CPLD在SPWM变频调速系统控制中的应用.电子技术.29(4).2002:16-19 (272-274)
    [32] 李叶松,董玮.基于CPLD的开放式四轴运动控制器的设计.电子技术应用.28(5),2002:35-37
    [33] 魏占永.基于CPLD芯片EPM7128设计的数据合并转换器.电子技术应用.28(11),2002:56-5
    [34] 侯伯亨,顾新.VHDL硬件描述语言与数字逻辑电路设计.西安:西安电子科技大学出版社,1999:4-28
    [35] San Jose, CA 95134. Warp~(TM) HDL Development System User's Guide. Cypress Semiconductor. 2000: 61-106
    [36] CYGNAL Integrated Products Inc. C8051F040/1/2/3 DataSheet, 2002: 109-114
    [37] KEIL SOFTWARE Inc. Cx51 Compiler User's Guide. 2001
    [38] 尤晋元,史美林等.Windows操作系统原理.北京:机械工业出版社:386
    [39] Art Baker, Jerry Lozano. Windows 2000 Device Driver Book(Second Edition). Prentice Hall PTR. 2001: 10
    [40] Jungo Ltd. WinDriver V5 User's Guide. 2002
    [41] CYGNAL Integrated Products Inc. C8051F040/1/2/3 DataSheet, 2002:33-91
    [42] Texas Instruments. DSP Selection Guide. 2002:26
    [43] 王玉林.基于TMS320F240的多种PWM实现.单片机与嵌入式系统应用.2(08),2002:26-28
    [44] 刘存.计算机网络.北京:机械工业出版社2002:43-54
    [45] CANopen, Communication Profile for Industrial Systems based on CAL
    [46] CiA Draft Standard 301, Version 3.0, 96
    [47] DeviceNet Specifications, Release 2.0 1997, Vol. Ⅰ: Communication Model and Protocol, Vol. Ⅱ:Device Profiles and Object Library
    [48] Pro.Dr.-Ing. K.Etschbcrger.基于CAN的较高层协议和子协议.http://www.zlgmcu.com 2002:3

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

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

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