【正文】
基于單片機(jī)和 VB的多點(diǎn)溫度監(jiān)控系統(tǒng)設(shè)計(jì) 上位機(jī)設(shè)計(jì) 院 系 自動(dòng)化學(xué)院 專 業(yè) 自動(dòng)化 班 級(jí) 5407202 學(xué) 號(hào) 202104072064 姓 名 姚維丹 指導(dǎo)教師 王 昱 負(fù)責(zé)教師 王 昱 沈陽(yáng)航空工業(yè)學(xué)院 2021 年 6 月沈陽(yáng)航空工業(yè)學(xué)院畢業(yè)設(shè)計(jì)(論文) I 摘 要 溫度是一個(gè)基本的物理量,它是工農(nóng)業(yè)生產(chǎn)過(guò)程中最普遍、最主要的工藝參數(shù)之一,實(shí)時(shí)精確的溫度監(jiān)控是產(chǎn)品質(zhì)量的重要保證。隨著現(xiàn)代科技的發(fā)展,電子計(jì)算機(jī)已越來(lái)越多地應(yīng)用于溫度的監(jiān)控中。 本文針對(duì) 下 位機(jī) 多點(diǎn)溫度 測(cè) 控系統(tǒng) 的 各點(diǎn)溫度 值, 通過(guò) VB 建立一個(gè)溫度信息管理系統(tǒng)。詳細(xì)闡述了系統(tǒng)的設(shè)計(jì)方法及功能。 實(shí)現(xiàn)了與 溫度測(cè)控電路進(jìn)行 實(shí)時(shí) 數(shù)據(jù)通信, 完成 溫度信息的上傳和溫度設(shè)定值的下傳 功能 。采用 Access 設(shè)計(jì)數(shù)據(jù)庫(kù),記錄用戶信息和溫度信息。用 VB 連接數(shù)據(jù)庫(kù),完成溫度信息的查詢、顯示、趨勢(shì)圖、報(bào)表生成等功能。達(dá)到了實(shí)時(shí)記錄溫度信息,定時(shí)傳送溫度設(shè)定值的技術(shù)指標(biāo)要求 。該多點(diǎn)監(jiān)控系統(tǒng)擁有良好的人機(jī)界面,通用性好,操作簡(jiǎn)單、方便 、易于 實(shí)現(xiàn)溫度的集中監(jiān)控和管理 等特點(diǎn), 具有較廣泛的應(yīng)用前景。 關(guān)鍵詞 : VB; 數(shù)據(jù)庫(kù);溫度;監(jiān)控 沈陽(yáng)航空工業(yè)學(xué)院畢業(yè)設(shè)計(jì)(論文) II Abstract Temperature is a fundamental physical quantity, it is one of the most general and important process parameters in industrial and agricultural realtime temperature monitoring is an important guarantee for the quality of products. With the development of modern science and technology, electronic puter has been used in temperature monitoring frequently. Therefore, in this paper an information management system of temperature is established for multipoint temperature monitoring system by VB. The design methods and functions of the system is illuminated in detail. The system has not only achieved realtime data munication with temperature monitoring and control circuits but also acplished the transfer of temperature information and temperature settings. An access database is used to record users’ information and temperature information. Using VB to connect to the database the system has many functions such as the query, display, trend, report generation and so on. The technical target of the record, the transmission of realtime temperature information and the temperature settings is also achieved. The multipoint temperature monitoring system has good humanputer interface, good mon, simple and convenient operation. It is easy to implement centralized monitoring and management of the temperature. The system has a very extensive application prospect. Keywords: VB。 database。 temperature。 monitoring 沈陽(yáng)航空工業(yè)學(xué)院畢業(yè)設(shè)計(jì)(論文) III 目 錄 第 1 章 緒論 ......................................................................................................................... 1 課題背景 .................................................................................................................... 1 多點(diǎn)溫度監(jiān)控系統(tǒng)發(fā)展現(xiàn)狀 .................................................................................... 1 課題研究?jī)?nèi)容及技術(shù)指標(biāo) ........................................................................................ 4 本文安排 .................................................................................................................... 5 第 2 章 多點(diǎn)溫度監(jiān)控系統(tǒng)總體方案的設(shè)計(jì) ..................................................................... 6 系統(tǒng)描述 .................................................................................................................... 6 總體方案設(shè)計(jì) ............................................................................................................ 6 課題主要技術(shù)指標(biāo) .................................................................................................... 7 第 3 章 VB 與單片機(jī)通信的建立 ...................................................................................... 8 串行通信及 RS—232 總線 ....................................................................................... 8 串行通信 .............................................................................................................. 8 RS232 總線標(biāo)準(zhǔn) ................................................................................................ 10 Visual 中的串行通信控件 MSComm ....................................................... 11 MSComm 控件處理通信的方式 ....................................................................... 12 MSComm 控件的常用屬性 ............................................................................... 12 MSComm 控件的使用 ....................................................................................... 14 PC 機(jī)與 AT89S51 單片機(jī)的通信 ............................................................................ 15 硬件連接線路 .................................................................................................... 15 通信協(xié)議 ............................................................................................................ 15 VB 程序編制 ...................................................................................................... 16 第 4 章 多點(diǎn)溫度信息管理系統(tǒng) ....................................................................................... 19 多點(diǎn)溫度信息管理系統(tǒng)功能 .................................................................................. 19 數(shù)據(jù)庫(kù)的設(shè)計(jì) .......................................................................................................... 20 Access 數(shù)據(jù)庫(kù)的設(shè)計(jì) ......................................................................................... 20 VB 操作 Access 數(shù)據(jù)庫(kù)的方法 ......................................................................... 21 數(shù)據(jù)庫(kù)的生成 .................................................................................................... 22 沈陽(yáng)航空工業(yè)學(xué)院畢業(yè)設(shè)計(jì)(論文) IV 應(yīng)用程序的設(shè)計(jì) ...................................................................................................... 22 用戶登陸模塊設(shè)計(jì) ............................................................................................ 23 系統(tǒng)功能模塊設(shè)計(jì) ............................................................................................ 24 主界面的設(shè)計(jì) .................................................................................................... 25 顯示模塊以及數(shù)據(jù)庫(kù)顯 示模塊的設(shè)計(jì) ............................................................ 28 查詢模塊的設(shè)計(jì) ................................................................................................ 29 通信及趨勢(shì)圖模塊的設(shè)計(jì) .................................................