使用vb進行基于485總線的溫度采集系統(tǒng)開發(fā).doc
約42頁DOC格式手機打開展開
使用vb進行基于485總線的溫度采集系統(tǒng)開發(fā),使用vb進行基于485總線的溫度采集系統(tǒng)開發(fā)全文42頁約17000字論述翔實摘要隨著自動控制技術的發(fā)展及其在工程中的廣泛應用,控制監(jiān)控系統(tǒng)越來越復雜,一個系統(tǒng)往往由分散目標監(jiān)控系統(tǒng)、數(shù)據(jù)采集系統(tǒng)、數(shù)據(jù)庫等幾部分組成。正是基于這一背景,rs-485總線型網(wǎng)絡溫度采集系統(tǒng)得到了推廣與發(fā)展。我們用微軟開發(fā)的vb與研華的ada...
內(nèi)容介紹
此文檔由會員 癡狂少年 發(fā)布
使用VB進行基于485總線的溫度采集系統(tǒng)開發(fā)
全文42頁 約17000字 論述翔實
摘要
隨著自動控制技術的發(fā)展及其在工程中的廣泛應用,控制監(jiān)控系統(tǒng)越來越復雜,一個系統(tǒng)往往由分散目標監(jiān)控系統(tǒng)、數(shù)據(jù)采集系統(tǒng)、數(shù)據(jù)庫等幾部分組成。正是基于這一背景,RS-485總線型網(wǎng)絡溫度采集系統(tǒng)得到了推廣與發(fā)展。我們用微軟開發(fā)的VB與研華的ADAM4011相結合,設計了一套溫度采集系統(tǒng)。
基于RS-485計算機溫度采集系統(tǒng)是一個用于處理自動化的溫度采集系統(tǒng)。整個系統(tǒng)通過網(wǎng)絡傳輸、采集模塊同時監(jiān)控多個工作站,中心計算機可以對每個工作站進行數(shù)據(jù)采集,并且彼此之間互不干擾。計算機通過COM與RS-485網(wǎng)絡和ADAM模塊相連。中心計算機向模塊發(fā)送取數(shù)命令,然后每個ADAM模塊通過RS-485總線向中心計算機回傳溫度數(shù)據(jù)。收到的溫度數(shù)據(jù)即時的存儲到數(shù)據(jù)庫,以便數(shù)據(jù)記錄與數(shù)據(jù)查找。
本系統(tǒng)具有操作簡單、可靠度高、通信距離遠、通信速率高等特點,而且具有應用與推廣的價值。
[關鍵詞] 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 分布式監(jiān)控與ADAM模塊 13
2.2.1 分布式監(jiān)控 13
2.2.2 ADAM模塊 14
2.2.3 模塊運作方式 16
3 系統(tǒng)總體設計 16
3.1 系統(tǒng)分析 16
3.2 國內(nèi)溫度采集發(fā)展狀況 17
3.2.1 數(shù)據(jù)采集模式 17
3.2.2 數(shù)據(jù)采集過程中過多的人為干擾因素 18
3.2.3 系統(tǒng)的線路結構復雜 18
3.3 總體方案設計 18
4.1 溫度采集機構的設計 19
4.2 RS-485網(wǎng)絡系統(tǒng)設計 20
4.2.1 ADAM模塊的選擇 21
4.2.2 RS-485網(wǎng)絡的設計 21
4.2.3 ADAM模塊的設置 22
4.2.4 ADAM模塊與RS-485的連接 22
4.2.5 RS-485網(wǎng)線和計算機的連接 23
5 軟件設計 24
5.1 程序框架及VB的介紹 24
5.2 傳輸協(xié)議的選擇 25
5.3 數(shù)據(jù)采集及過程控制 28
5.4 數(shù)據(jù)庫設計 34
6 系統(tǒng)仿真測試 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中文版》.電子工業(yè)出版社 ,1999
(12)李存斌、郭曉鵬.《Visual Basic高級編成及其項目應用開發(fā)》.中國水利水電出版社,2003
全文42頁 約17000字 論述翔實
摘要
隨著自動控制技術的發(fā)展及其在工程中的廣泛應用,控制監(jiān)控系統(tǒng)越來越復雜,一個系統(tǒng)往往由分散目標監(jiān)控系統(tǒng)、數(shù)據(jù)采集系統(tǒng)、數(shù)據(jù)庫等幾部分組成。正是基于這一背景,RS-485總線型網(wǎng)絡溫度采集系統(tǒng)得到了推廣與發(fā)展。我們用微軟開發(fā)的VB與研華的ADAM4011相結合,設計了一套溫度采集系統(tǒng)。
基于RS-485計算機溫度采集系統(tǒng)是一個用于處理自動化的溫度采集系統(tǒng)。整個系統(tǒng)通過網(wǎng)絡傳輸、采集模塊同時監(jiān)控多個工作站,中心計算機可以對每個工作站進行數(shù)據(jù)采集,并且彼此之間互不干擾。計算機通過COM與RS-485網(wǎng)絡和ADAM模塊相連。中心計算機向模塊發(fā)送取數(shù)命令,然后每個ADAM模塊通過RS-485總線向中心計算機回傳溫度數(shù)據(jù)。收到的溫度數(shù)據(jù)即時的存儲到數(shù)據(jù)庫,以便數(shù)據(jù)記錄與數(shù)據(jù)查找。
本系統(tǒng)具有操作簡單、可靠度高、通信距離遠、通信速率高等特點,而且具有應用與推廣的價值。
[關鍵詞] 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 分布式監(jiān)控與ADAM模塊 13
2.2.1 分布式監(jiān)控 13
2.2.2 ADAM模塊 14
2.2.3 模塊運作方式 16
3 系統(tǒng)總體設計 16
3.1 系統(tǒng)分析 16
3.2 國內(nèi)溫度采集發(fā)展狀況 17
3.2.1 數(shù)據(jù)采集模式 17
3.2.2 數(shù)據(jù)采集過程中過多的人為干擾因素 18
3.2.3 系統(tǒng)的線路結構復雜 18
3.3 總體方案設計 18
4.1 溫度采集機構的設計 19
4.2 RS-485網(wǎng)絡系統(tǒng)設計 20
4.2.1 ADAM模塊的選擇 21
4.2.2 RS-485網(wǎng)絡的設計 21
4.2.3 ADAM模塊的設置 22
4.2.4 ADAM模塊與RS-485的連接 22
4.2.5 RS-485網(wǎng)線和計算機的連接 23
5 軟件設計 24
5.1 程序框架及VB的介紹 24
5.2 傳輸協(xié)議的選擇 25
5.3 數(shù)據(jù)采集及過程控制 28
5.4 數(shù)據(jù)庫設計 34
6 系統(tǒng)仿真測試 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中文版》.電子工業(yè)出版社 ,1999
(12)李存斌、郭曉鵬.《Visual Basic高級編成及其項目應用開發(fā)》.中國水利水電出版社,2003