使用vb进行基于485总线的温度采集系统开发.doc

约42页DOC格式手机打开展开

使用vb进行基于485总线的温度采集系统开发,使用vb进行基于485总线的温度采集系统开发全文42页约17000字论述翔实摘要随着自动控制技术的发展及其在工程中的广泛应用,控制监控系统越来越复杂,一个系统往往由分散目标监控系统、数据采集系统、数据库等几部分组成。正是基于这一背景,rs-485总线型网络温度采集系统得到了推广与发展。我们用微软开发的vb与研华的ada...
编号:10-26701大小:1.37M
分类: 论文>计算机论文

内容介绍

此文档由会员 痴狂少年 发布

使用VB进行基于485总线的温度采集系统开发

全文42页 约17000字 论述翔实

摘要
随着自动控制技术的发展及其在工程中的广泛应用,控制监控系统越来越复杂,一个系统往往由分散目标监控系统、数据采集系统、数据库等几部分组成。正是基于这一背景,RS-485总线型网络温度采集系统得到了推广与发展。我们用微软开发的VB与研华的ADAM4011相结合,设计了一套温度采集系统。
基于RS-485计算机温度采集系统是一个用于处理自动化的温度采集系统。整个系统通过网络传输、采集模块同时监控多个工作站,中心计算机可以对每个工作站进行数据采集,并且彼此之间互不干扰。计算机通过COM与RS-485网络和ADAM模块相连。中心计算机向模块发送取数命令,然后每个ADAM模块通过RS-485总线向中心计算机回传温度数据。收到的温度数据即时的存储到数据库,以便数据记录与数据查找。
本系统具有操作简单、可靠度高、通信距离远、通信速率高等特点,而且具有应用与推广的价值。

[关键词] RS-485,ADAM模块,VB,温度采集

The system development of temperature collecting
by using VB based on 485 bus
Abstract
with developing of automatic control engineering and his extensive use in the engineering, it is more and more complicated to control the monitor system, and a system often by many parts such as discrete target monitor system, data acquisition system and data base etc forms. Based on this background, that the system gets popularization and development is gathered that to total line type cross-domain communication temperature of RS-485. We each other combine with the VB of minute soft development with ADAM4011, and designed a system of temperature collecting.
That the system is used the temperature to deal with the automation to be gathered the system is gathered that to the RS-485 computer temperature baseded on. The whole system supervises many operating locations at the same time by way of cross-domain communication transmission and gathering module, and the center computer can carry on the data collection to every operating location, and each other between does not disturb mutually. The computer is linked together by way of COM Port1 with RS-485bus cross-domain communication and ADAM module. The center computer transmits taking counting and orders to the module, then every ADAM's module is passed through RS-485's bus to the center computer feedback temperature data. The temperature data received immediately saves to the data base so that the data logging is looked for with the data.
The characteristics such as this system possesses to operate simple, reliable to spend high, the communication range far away, communication speed is high etc, and as a result, it has great value of application and popularization.
[Key words] RS-485,ADAM module,VB,temperature collecting

目录

1 绪论 5
2 RS-485串行通信 6
2.1 串行通信 6
2.1.1 RS-232 7
2.1.2 RS-485 8
2.1.3 工作模式 11
2.2 分布式监控与ADAM模块 13
2.2.1 分布式监控 13
2.2.2 ADAM模块 14
2.2.3 模块运作方式 16
3 系统总体设计 16
3.1 系统分析 16
3.2 国内温度采集发展状况 17
3.2.1 数据采集模式 17
3.2.2 数据采集过程中过多的人为干扰因素 18
3.2.3 系统的线路结构复杂 18
3.3 总体方案设计 18
4.1 温度采集机构的设计 19
4.2 RS-485网络系统设计 20
4.2.1 ADAM模块的选择 21
4.2.2 RS-485网络的设计 21
4.2.3 ADAM模块的设置 22
4.2.4 ADAM模块与RS-485的连接 22
4.2.5 RS-485网线和计算机的连接 23
5 软件设计 24
5.1 程序框架及VB的介绍 24
5.2 传输协议的选择 25
5.3 数据采集及过程控制 28
5.4 数据库设计 34
6 系统仿真测试 36
7 结论 38
致谢 39
参考资料 40

部分参考文献

(7) Evangelos Petroutsos《Mastering Visual Basic 6》.美国SYBEX公司出版,1999.9
(8) 冷向君、于振宇.《Visual Basic 5. 0 入门与提高》.北京:清华大学出版社,1998
(9) Microsoft Corporation.《Visual Basic 5. 0 程度员指南》.北京:科学出版社,1998
(10) 赵钧锡.《基于RS-485接口的单片机串口通信》.兵工自动化,2000.4
(11) 刘炳文.《精通Visual Basic中文版》.电子工业出版社 ,1999
(12)李存斌、郭晓鹏.《Visual Basic高级编成及其项目应用开发》.中国水利水电出版社,2003