基于公用电话网的微机监控系统
详细信息    本馆镜像全文|  推荐本文 |  |   获取CNKI官网全文
摘要
本课题以春海热电厂的技术改造工程项目为背景,在对春海热电厂提出的技术要求作出具体分析后,提出了利用公用电话网进行远程的数据传输与监控的整体设计方案。
     本文首先介绍了计算机通信基础知识和在通信过程中极其重要的设备——MODEM(调制解调器),接着介绍了本文中涉及到的数据校验方法和数据传输过程中所遵循的通信协议,随后详细的介绍了系统的整体设计思想和具体的实现过程。
     本文采用微软公司的高级编程语言Visual Basic 6.0作为监控系统上位机管理软件的开发工具。利用VB开发WINDOWS下的应用程序,具有开发周期短、修改维护方便、界面友好等优点。本文通过对VB提供的用于串行通信的MSCOMM控件所提供的各种功能的调用以及对MODEM编程技术的使用,实现了从数据链路的建立到通过公用电话网对CDV-12蒸汽流量仪表的数据采集等多项功能。
     采用ACCESS数据库作为系统的后台数据库。利用VB对数据库的编程技术实现了系统对数据库的各种操作。由于VB的报表功能较弱不能满足系统对报表功能的要求,所以采用了用VB调用EXCEL电子表格的技术,完成了各种报表的预览和打印功能。
     采用89C2051单片机开发了一个智能接口盒,用于连接MODEM和蒸汽流量仪表。通过使用MCS51汇编语言编写程序,实现了智能接口与MODEM和蒸汽流量仪表间的数据传输,同时实现了自动检测掉电,进行拨号报警的功能。
     本系统的开发与研制的成功改变了热电厂原有的落后的手工抄表方式,节省了人力、物力,提高了热电厂管理的自动化水平和工作效率,具有明显的经济效益和社会效益。
According to the technical innovation requirement by ChunHai thermoelectric plant of Dalian, a remote Monitoring and Control System is designed after analyzing the request of the project. The data from CDV-12 Gas volume corrector will be transferred through the Modem and the Public-Switched Telephone Network (PSTN). Both software and hardware working have been included in this project.
    First, the fundamental knowledge of the communication is introduced, followed by the introduction of the Modem, one of the most important devices used in the process of communication. Then the paper focuses on the protocols of data transference.
    Based on the fact that it is easy to use, debug and update the code, VB is employed as the programming tool for the central computers in the Monitoring and Control System. Although VB can not realize to read from and write to the I/O serial port directly, it provides the MSComm ActiveX control to accomplish the job.
    Access Database is used in this system. VB employs many language commands to access the Database in order to meet the demands of reading, writing and saving the data obtained in this system. Moreover, the function of printing is achieved by using the Excel.
    The Single Chip Micyoco (SCM), 89C2051, is used to design an intelligent interface box to connect the Modem with the CDV-12 Gas volume corrector. MCS-51 assemble language is used to program the software of the device. When the electric power in the city is broken down, the intelligent interface box can dial the phone number of central computer automatically to send the alarm message through the communication line.
    Because the Monitoring and Control System is used in the plant the old working mode has been changed, the management level and work efficiency has been improved, many economic and social benefits have been obtained. As a result, personnel and material resources are saved.
引文
[1].陈坚 孙志月 著,MODEM通讯编程技术,西安电子科技大学出版社,1998
    [2].Joe Campbell 著,串行通信C程序员指南(第二版),清华大学出版社,1992
    [3].田学锋 周子滨 著,计算机通信与RS-232接口实用指南,电子工业出版社,1995
    [4].谢希仁 著,计算机网络,大连理工大学出版社,1998
    [5].石柏铭 著,计算机通信网与开放系统互连技术,人民邮电出版社,1993
    [6].吴玲达 李国辉 史永焕 著,计算机通信,国防科技大学出版社,1994
    [7].李朝青 著,单片机原理及接口技术,北京航空航天大学出版社,1994
    [8].胡汗才 著,单片机原理及其接口技术,清华大学出版社,1996
    [9].房小翠 王金凤 著,单片机实用系统设计技术,国防工业出版社,1999
    [10].王福瑞 著,单片机微机测控系统设计大全,北京航空航天大学出版社,1999
    [11].C.康奈尔 著,Visual Basic 4.0 FOR WINDOWS95 手册,科学出版社 1996
    [12].J.C.Craig VJ.Webb 著,Visual Basic5.0 开发与技巧,机械工业出版社,1998
    [13].Microsoft Corporation 著,Visual Basic 6.0 Programmer'Guide,Microsoft 出版社出版,1998
    [14].Francesco Balena 著 Visual Basic 6 编程技术大全,机械工业出版社,2000
    [15].Brian Siler Jeff Sports著,Visual Basic 6开发使用手册,机械工业出版社,1999
    [16].张显库 著,VB实用编程技术—从基础到开发,大连理工大学出版社,1997
    [17].张显库 张均东 著,VB6.0程序设计,大连理工大学出版社,1999
    [18].陈俊源 著,活用 Visual Basic 5.0 数据库编程(中文版),清华大学出版社,1998
    [19].清汉计算机工作室,Visual Basic 6.0 数据库开发实例,机械工业出版社,2000
    [20].E.Winemiler,J.Roff,B.Heyman,R.Groom,Visual Basic 6.0 数据库开发,清华大学出版社,1999
    [21].CDV 12 PTZ User Manual 1999.7
    [22].艾长胜 章勇 著,基于VB的MODEM通讯控制,微计算机信息,1999(5),P18~P20
    [23].吕文哲 著,用Visual C++开发 WINDOWS 环境下的串行通信程序,电子技术应用 1997(8),P29~P31
    
    
    [24].吕文哲 黄强 著,再谈用Visual C++开发WINDOWS环境下的串行通信程序,电子技术应用,1998(9),P33~P36
    [25].徐萍 著,用Visual Basic开发微机与单片机通信程序,电子技术应用,1996(6),P19~P22
    [26].王建业 王和明 著,用89C51实现的异步无线数据通信接口,电子技术应用,1998(2),P43~P44
    [27].李键 王立宁 倪世坤 靳世久 著,8031单片机控制调制解调器远程数据传输技术,电子技术应用,1998(5),P37~P39
    [28].马彦恒 尚朝轩 著,CRC差错校验法在IBM/PC与8031单片机无线通讯中的应用,电子技术应用,1997(7)P17~P18
    [29].钟继红 著,RS-485远程测控系统,电子技术,1998(12),P34~P35
    [30].G.B.Tzeng,M.S.Young,Y.C.Lin,Visible Light Monitor and Control System For The Study of The Neonatal Growth Environment,Microcomputer Application,Vol,No.3,P103-P112,1999
    [31].Les Freed and Frank J.Derfler,Modem Communications,电子工业出版社,1998
    [32].Robert G.Winch,Telecommunication,Transmission Systems,A Division of The McGraw—Hill Companies,1999
    [33].Walter A.Triebel,Avtar Sigh,16-Bit Microprocessor Architecture,Softwareare and Interface Techniques,Preentice-Hall Inc,1998
    [34].AT89C20518-Bit Microcontroller User Manual,http://www.atmel.com/

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

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

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