版權(quán)說(shuō)明:本文檔由用戶提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權(quán),請(qǐng)進(jìn)行舉報(bào)或認(rèn)領(lǐng)
文檔簡(jiǎn)介
1、<p> New Environment Parameters Monitoring And Control System For Greenhouse Based On Master-slave Distributed</p><p> Abstract--According to the actual need of monitoring and control of greenhouse en
2、vironment parameters in rural areas,a master-slave distributed measurement and control system is designed,in which PC is taken as the host. The system consists of PC ,soil moisture measurement and control module,temperat
3、ure and humidity, and CO2 monitoring and control module. In the system,PC has large amount of data storage which is easy to make use of fuzzy control expert system,configuration software-KingView is</p><p>
4、 I. INTRODUCTION</p><p> To modern indoor agriculture, the automatic measurement and control of environment parameters is the key to achieve crop yield and quality of greenhouse.In recent years,facilities
5、agriculture develops vigorously in our country,matched with it,the monitoring and control instrument of greenhouse have also made certain development.After nearly 10 years of unremitting hard work,our research team of me
6、asurement and control system of agriculture environment parameters,designed an intelligent measureme</p><p> II SYSTEM STRUCTURE AND PRINCIPLE</p><p> The most marked feature of the distributi
7、on combined and intelligent control system greenhouse is that of incorporating with data acquisition, control and management as a whole,module combination, simple structure,convenient human-computer interaction,and using
8、 technology of intelligent expert fuzzy control,which can adapt to a variety of crop management control in greenhouse.The basic structure of the system is shown in Fig.1.</p><p> The structure of the distri
9、buted system is composed of two layers:the upper and lower.In the top-price PC is taken as the host to make system management and experts fuzzy operation in intelligent,and to provide a friendly human-computer interface,
10、and to realize the united monitoring and management of greenhouse; the lower is composed of a series of modules of different function,and in each module,a single chip of AT89C is adopted as the lower machine,RS485 is use
11、d to communicate PC with all AT89</p><p> The system is applied in rural greenhouses in Qinhuangdao.Usually at 1/4 near East and West end in a greenhouse,and at the height of 1.5m from the ground in the mid
12、dle in the northern half (near the wet curtain) and the southern half (near the fan ),a module of air temperature and humidity ,CO2 concentration and a module of soil moisture content are set;a module of soil moisture co
13、ntent will be added in the middle of the greenhouse according to the actual condition;at the height of 1.5m in the m</p><p> III . HARDWARE DESIGN</p><p> The CP and communication system</p
14、><p> In the distributed system of data acquisition and control,as the micro control unit is limited in data storage and slow in calculating of complex functions,so PC is used and the master-slave module is ad
15、opted in the system,that is a system of,taking PC as the host and taking the SCM systems located in the scene as slave.</p><p> In this distributed system,communication is the key to it.Generally,the serial
16、 port of PC is standard RS232,of which transmission distance is shorter.But in agriculture control system.its communication distance is of tens of meters or several kilometers, so RS232/RS485 converter is used to achieve
17、 communication between the PC and SCM.To reduce investment,both considering the user convenience and friendly human-computer interaction,low-price PC of above 486 and below PIV is adopted;and considerin</p><p&
18、gt; B. The control modules of temperature and humidity,illuminance and CO2 concentration</p><p> Each control unit consists of SCM,sensors,signal processing circuit,RS485 interface and output circuit.The h
19、ardware structure of module of temperature and humidity,CO2 concentration is shown in Fig.2.</p><p> CO2 concentration is measured by sensor based on NDIR technology,measurement is of 0~2×103mol.Throug
20、h the sensor,control system,by software of digital filter,linear interpolation and temperature compensation,the CO2 concentration is output as digital adhered to UART protocol,and then is input directly to the SCM.</p
21、><p> The new intelligent sensor of SHT11 based on CMOSens technology is chosen in the measurement of temperature and humidity.In SHT11,the temperature and humidity sensors,signal amplification,A/D,I2C bus are
22、 all integrated in a chip;it has full-scale calibration,second-line digital output,and humidity measuring range of 0~100% RH,temperature measurement range of -40℃~+123.8℃,humidity measurement accuracy of ±3.0% RH,te
23、mperature measurement accuracy of ±0.4℃,the response time of <4s.</p><p> The illuminance sensor of JY1-TBQ-6 of silicon photovoltaic detection is used Light measuring.Its measurement range is 0~200
24、,000 Lux;spectral range is 400~700(nm) visible light;measurement error is less than 2%; output is 4~20mA or 0~20mV;output signal can be directly send to the A/D of the SCM after being amplified to 0~4V.</p><p&
25、gt; Modules accept the instructions form the the Upper,and output via the output circuit .The output circuit consists of optical isolation,the signal driver and the output relays.</p><p> C. The measuremen
26、t and control modules of soil moisture</p><p> Water is a polar medium, the dielectric constant of the soil containing water is mainly determined by the water,when water content is different,the wave impeda
27、nce is different.The soil moisture is measured by standing wave radio method in this system.</p><p> Based on the theory of Engineering Electromagnetic Field,for lossy medium,the electromagnetic wave impeda
28、nce as follows:</p><p> Z0=√μ/ε(1+jλ/(ωε))</p><p> Where μ is medium permeability,and μ of soil is μ≈μ0 is the vacuum permeability;ε is medium dielectric constant;λ is medium conductivity;ω is
29、 electromagnetic wave frequency.</p><p> In the very low audio(<2000Hz),the loss tangent of dry soil dielectric is λ/ωε≈0.07,if you choose the frequency of the signal source at above 20MHz.then,ε≈ε∞,the
30、imaginary part of the soil wave impedance is neglect,only the real part,which amounts to a pure resistance.</p><p> Soil moisture sensor consists of 100MHz signal source,a coaxial transmission line and a 4-
31、pin stainless probe.The electromagnetic waves of signal transmit to the probe along the lines.As the probe impedance and line impedance are different,the superimposition of incident waves and reflected waves forms a stan
32、ding waves.</p><p> Taking the coaxial transmission line as a lossless uniform line,wave impedance is Z0,Zl is the load impedance.</p><p> Then the reflected coefficient of voltage wave at the
33、 probe is:</p><p> Γ= (ZL-Z0)/(ZL+Z0)</p><p> Choosing the length of transmission line is l=λ/4,the maximum and minimum of both ends of the line are Umax and Umin,Then the standing wave radio
34、in the line can be expressed as:</p><p> S=Umax /Umin =(1-|Γ|)/(1+|Γ|)</p><p> In the way,the soil moisture radio can be measured by measuring the standing wave rate of transmission line.</
35、p><p> As shown in Fig.3.,soil moisture module consists of sensors and controllers,the sensors are subordinated to controllers,controllers can be omitted without the need of irrigation in greenhouse.</p>
36、<p> To simplify the control,irrigation technology of node-type in partition is adopted in the control soil moisture in this system.To a certain extent,the parameters of upper and lower the ground can be decouple
37、d by adopting this technology.</p><p> IV CONTROL SYSTEM PROGRAMMING</p><p> The software of PC is developed by KingView 6.51 of Beijing-controlled Asia.This configuration software has high re
38、liability,shorter development cycle,perfect capability of graphical interface generation,and friendly human-computer interaction;and can create dynamic images and charts in accordance with the layout of equipment in the
39、scene;can visually display the changes of parameters,control status,and can give an alarm when over-limited;and can achieve fuzzy control of greenhouse parameters by</p><p> The software of SCM of the slave
40、 is developed by Keil C51 to achieve real-time collecting,processing,uploading of the parameters and accept the fuzzy control instructions from the host computer and complete local control of the device.</p><p
41、> Program design of the control module</p><p> The software of the sub-slave machine of soil moisture module,that include the main function,subroutines of data acquisition and processing,interrupt handl
42、ing and communicating etc,read the value of standing wave voltage through the parallel data port and obtained the value of soil moisture content by function calculating.</p><p> The software of the slave ma
43、chine of monitoring and control of soil moisture mainly complete data communication with the sub-slave machine,uploading measurement data and current control state to the host computer,accepting the fuzzy control instruc
44、tions from the host computer and output the implementation instructions.</p><p> The software of the slave machine of temperature and humidity,and CO2 mainly complete reading data of CO2 concentrations and
45、temperature and humidity through the I2C concentration,uploading measurement data and current control state to the host computer,accepting the fuzzy control instructions from the host computer and output the implementati
46、on instructions.The structure of the main program and interrupt subroutine of temperature and humidity module are shown in Fig.4.</p><p> The serial interrupt mode 3 is adopted by all slaves to communicate
47、with the host,transmit the digital collecting and receive instructions.</p><p> B. Program design of PC and fuzzy control system </p><p> The communication settings of KingView 6.51:In order t
48、o ensure the correctness of communication,the upper and lower must follow the same communication protocol,set the communication parameters.Usually in communication,master-slave mode is adopted in style and responder is a
49、dopted in the process.That is ,the master sent a command to the slave first,then et slave give an answer after receiving the command,thus once communication is completed.In KingView ,a scheduled polling method is adopted
50、 to do</p><p> The connection of KingView 6.51 and database:Database is the core of the software,that not only contains the definition of variables,real-time parameters and the historical parameters,but als
51、o is needed by parameters alarming,fuzzy calculating,reporting ,and displaying.Access2003 desktop database is used as records database of the system,and by using SQL,it is operated by KingView via ODBC.The procedure is :
52、to create data variables in KingView to create a body of records to establish a data sour</p><p> Software design of PC :For the control system of greenhouse,data storage capacity of the PC is unlimited,so
53、if the existing mature software modules are include into the system,it both be relaxed and can improve the system reliability.The software of software consists of control module and management module.</p><p>
54、; Software of the system consists of the main control interface,auxiliary,databases,etc.A typical main interface of monitoring and control of PC is shown in Fig.5.</p><p> V. CONCLUSION</p><p>
55、; According to the economic bearing capacity of farmer in Qinhuangdao ,with the existing technology of monitoring and control of environment parameters of greenhouse,a master-slave distributed automatic control system o
56、f greenhouse environment in which PC is taken as the host computer is developed.The system has following characteristics:</p><p> With the large amount of data storage of PC,fuzzy control expert system is e
57、asy of data storage,modification and system upgrading.</p><p> By using KingView to develop software of PC,the system reliability is improved,and the development cycle is shorten,and a friendly human-comput
58、er interface is get.</p><p> A distributed and modular structure is used in the system,it makes the system maintenance easier and adapts to production needs more. The monitoring and control modules of the s
59、lave are connected to the host through the RS485 bus based on needs,then the control of greenhouse in partition or block can be achieved.</p><p> ACKNOWLEDGMENT</p><p> This work is supported
60、by Agricultural Science and Technology Achievement Transformation Fund Project.</p><p> 基于主從分布式新的溫室環(huán)境參數(shù)監(jiān)測(cè)和控制系統(tǒng)</p><p> 根據(jù)實(shí)際在農(nóng)村地區(qū)的溫室環(huán)境參數(shù)的監(jiān)測(cè)和控制,主從分布式測(cè)量和控制系統(tǒng)的設(shè)計(jì)需要,以其中一臺(tái)計(jì)算機(jī)作為主機(jī),該系統(tǒng)由PC、土壤水分測(cè)量和控制模塊,
61、溫度、濕度、CO2監(jiān)測(cè)和控制模塊組成。在該系統(tǒng)中,電腦有大量的數(shù)據(jù)存儲(chǔ)的功能,它很容易利用模糊控制專家,配置組態(tài)軟件組態(tài)王用來(lái)開(kāi)發(fā)PC軟件,具有開(kāi)發(fā)周期縮短和友好的人機(jī)交互的優(yōu)勢(shì)。每個(gè)監(jiān)測(cè)和控制模塊包括STC12系列的微控制器、傳感器、繼電器等等。如果系統(tǒng)實(shí)現(xiàn)控制溫室在分區(qū)和塊,需要選擇不同的模塊。</p><p><b> 一,簡(jiǎn)介</b></p><p> 現(xiàn)
62、代化農(nóng)業(yè)的室內(nèi),環(huán)境參數(shù)的自動(dòng)測(cè)量和控制是實(shí)現(xiàn)作物產(chǎn)量和品質(zhì)的關(guān)鍵。在近年來(lái),設(shè)施農(nóng)業(yè)在我國(guó)蓬勃發(fā)展,與之匹配的,具有監(jiān)測(cè)和控制儀器的溫室也有取得了一定的發(fā)展。近10年的不懈努力,我們的研究團(tuán)隊(duì)在農(nóng)業(yè)環(huán)境參數(shù)的測(cè)量和控制系統(tǒng)上,設(shè)計(jì)了一個(gè)智能測(cè)量和控制系統(tǒng)相分布結(jié)合的溫室,可以在廣大農(nóng)村地區(qū)適用。這個(gè)系統(tǒng)主要是控制溫度、濕度、二氧化碳濃度、土壤水分和照明溫室。單片機(jī),作為數(shù)據(jù)存儲(chǔ)空間較小,單一的顯示接口,有限的信息容量,但其有較高的性價(jià)
63、比,因此它作為前端的數(shù)據(jù)采集和控制單元為PC使用,它有大量的數(shù)據(jù)存儲(chǔ),豐富的軟件,方便的人機(jī)交互等優(yōu)點(diǎn)。</p><p> 如果我們使用過(guò)時(shí)的和低價(jià)的電腦,以PC機(jī)作為上位機(jī),以不同的功能控制模塊和多個(gè)微型計(jì)算機(jī)作為降低機(jī)器,然后組成一個(gè)基于微機(jī)的主從分布式和智能化控制系統(tǒng),既更好的監(jiān)視和控制、顯示和數(shù)據(jù)收集或管理的實(shí)現(xiàn),而且費(fèi)用低,系統(tǒng)會(huì)根據(jù)實(shí)際的需要選擇。</p><p><b
64、> 二,系統(tǒng)結(jié)構(gòu)及原理</b></p><p> 最顯著的特點(diǎn)是分配和智能控制系統(tǒng)溫室相結(jié)合,這將作為一個(gè)整體,模塊組合結(jié)構(gòu)簡(jiǎn)單,方便的人機(jī)交互與數(shù)據(jù)采集,控制和管理,并采用模糊控制技術(shù)的智能專家,可以組成適應(yīng)多種作物管理控制的溫室。其基本結(jié)構(gòu)系統(tǒng)是圖1所示。</p><p> 分布式系統(tǒng)的結(jié)構(gòu)是由兩層組成:上部和下部。由最佳價(jià)格PC被取為主機(jī),使其能夠智能系統(tǒng)管理
65、和專家模糊運(yùn)算,并提供一個(gè)友好的人機(jī)界面,并實(shí)現(xiàn)統(tǒng)一的監(jiān)控和管理的溫室;下部是由一系列不同功能的模塊,并且在每個(gè)模塊中,一個(gè)單一的芯片作為下位機(jī)采用AT89C52,RS485則用于與所有AT89C52 PC進(jìn)行通信,然后實(shí)現(xiàn)收集,處理和控制的溫室參數(shù)。每個(gè)功能模塊是完全地電氣隔離,任何失敗的結(jié)節(jié)不會(huì)對(duì)其他模塊產(chǎn)生任何影響。系統(tǒng)通過(guò)分別收集環(huán)境信息的方式,每個(gè)監(jiān)控和控制模塊,并通過(guò)RS485接口將其發(fā)送到主機(jī)PC。并且由PC配置控制系統(tǒng),
66、額定參數(shù)的設(shè)定值進(jìn)行比較,然后根據(jù)專家智能模糊控制系統(tǒng)測(cè)量作物在不同生長(zhǎng)階段的各種環(huán)境的溫度,濕度,CO2濃度,土壤含水量進(jìn)行相應(yīng)的操作指令或報(bào)警,模糊控制指令。</p><p> 在秦皇島農(nóng)村大棚。通常在一個(gè)溫室的近東和西區(qū)的1/4區(qū)域,距離地面為1.5米的中間北部的一半(近濕簾)和南部的一半(風(fēng)扇附近的),設(shè)置一個(gè)模塊檢測(cè)空氣溫度、濕度、二氧化碳濃度和土壤水分含量,根據(jù)實(shí)際情況,將土壤含水量模塊添加在溫室的
67、中間;在高度為1.5米的主入口,設(shè)置一個(gè)水箱,其中的電磁閥滴水管應(yīng)根據(jù)土壤水分含量的需要設(shè)置和控制,并且將電腦放置在主入口的溫室內(nèi)。</p><p><b> 三,硬件設(shè)計(jì)</b></p><p><b> A.CP和通信系統(tǒng)</b></p><p> 分布式系統(tǒng)中的數(shù)據(jù)采集和控制:由于微型控制單元局限于在數(shù)據(jù)存儲(chǔ)和
68、計(jì)算復(fù)雜,所以電腦所的使用和主從模塊系統(tǒng)所采用的,這是一個(gè)系統(tǒng),以PC機(jī)作為主機(jī),以單片機(jī)作為子機(jī)。</p><p> 在這種分布式系統(tǒng)中,通信是關(guān)鍵。通常,PC機(jī)的串行端口是標(biāo)準(zhǔn)的RS232,傳輸距離較短。但是在農(nóng)業(yè)控制系統(tǒng),其通信距離的數(shù)十公尺或幾公里,所以RS232 / RS485轉(zhuǎn)換器通過(guò)PC機(jī)與單片機(jī)之間的通信來(lái)實(shí)現(xiàn)。減少投資,既考慮用戶方便和友好的人機(jī)交互,低價(jià)電腦的上面和下面采用PIV 486,并
69、考慮組態(tài)軟件的操作,內(nèi)存是必須是64M以上,硬盤是10GB以上。</p><p> B.控制模塊的溫度和濕度,照明度和CO2濃度</p><p> 每個(gè)控制單元包括供應(yīng)鏈管理(SCM),傳感器,信號(hào)處理電路,RS485接口和輸出環(huán)節(jié)。此模塊的溫度和濕度,二氧化碳濃度的硬件結(jié)構(gòu)示于圖2。</p><p> 基于NDIR技術(shù)測(cè)量CO2濃度的傳感器,測(cè)量范圍是0?2
70、×103摩爾。通過(guò)傳感器,控制系統(tǒng),利用軟件數(shù)字濾波、線性插值和溫度補(bǔ)償,得到二氧化碳的濃度,依附數(shù)字UART協(xié)議,然后直接輸入單片機(jī)。</p><p> 新的智能傳感器SHT11基于選擇CMOSens技術(shù)測(cè)量溫度和濕度。在SHT11,溫度和濕度傳感器、信號(hào)放大,A/ D,I2C總線全部集成在一個(gè)芯片上,它有滿刻度校準(zhǔn),第二行數(shù)字輸出并且濕度測(cè)量范圍為0?100%RH,溫度測(cè)量范圍為-40℃?+123
71、。8℃,濕度測(cè)量精度為±3。0%RH,溫度測(cè)量精度為±0。4℃,響應(yīng)<4的時(shí)間。</p><p> JY1-TBQ-6的照度傳感器的硅光伏檢測(cè)是使用光測(cè)量。它的測(cè)量范圍為0?200000勒克斯;光譜范圍為400?700(nm)的可見(jiàn)光;測(cè)量誤差是小于2%,輸出為4 ?20mA或0?20mV,輸出信號(hào)可以直接傳送到A / D的單片機(jī)放大后,大小為0?4V。</p><
72、p> 模塊接受指令形成上層,輸出通過(guò)輸出電路。輸出電路包括光學(xué)隔離、信號(hào)驅(qū)動(dòng),輸出繼電器。</p><p> C.土壤水分的測(cè)量和控制模塊</p><p> 水是一種極性介質(zhì),土壤的介電常數(shù)包含水,主要是由水決定,當(dāng)水含量是不同的,波阻抗不同。在這個(gè)系統(tǒng)中,土壤水分測(cè)量是通過(guò)駐波無(wú)線電的方法。</p><p> 基于工程電磁場(chǎng)理論,有損介質(zhì),如下的電磁
73、波阻抗:</p><p> Z0=√μ/ε(1+jλ/(ωε))</p><p> 其中,μ是介質(zhì)滲透性,土壤和μ是μ≈μ0是真空磁導(dǎo)率;ε是介質(zhì)的介電常數(shù),λ是介質(zhì)電導(dǎo)率;ω是電磁波頻。</p><p> 在非常低的音頻(< 2000 hz),損耗角正切的干土介質(zhì)是λ/ωε≈0。07,如果你選擇的信號(hào)源的頻率高于20兆赫茲。然后,ε≈ε∞,虛部的土壤波
74、阻抗忽視,只有真正的一部分,這相當(dāng)于一個(gè)純電阻。</p><p> 土壤水分傳感器由100 MHz信號(hào)源,同軸傳輸線和插件不銹鋼探針組成。電磁波信號(hào)沿著線傳輸?shù)教筋^。由于探針阻抗和線路阻抗不同,入射波和反射波的疊加形成駐波。</p><p> 以同軸傳輸線作為無(wú)損耗均勻線,波阻抗為Z0,ZL是負(fù)載阻抗。然后,在探針的電壓波的反射系數(shù)是:</p><p> Γ=
75、 (ZL-Z0)/(ZL+Z0)</p><p> 選擇傳輸線的長(zhǎng)度為l=λ/ 4時(shí),該行的兩端的最大和最小Umax和Umin時(shí),然后駐波無(wú)線電行中,可以表示為:</p><p> S=Umax /Umin =(1-|Γ|)/(1+|Γ|)</p><p> 按照這種方式,土壤水分無(wú)線電可以通過(guò)測(cè)量傳輸線的駐波率得到。</p><p>
76、 如圖3所示。土壤水分模塊包括傳感器和控制器,傳感器服從控制器,控制器可以被省略,而不需要灌溉溫室。</p><p> 在這個(gè)系統(tǒng)中,分區(qū)節(jié)點(diǎn)為了簡(jiǎn)化控制、灌溉技術(shù),采用控制土壤水分技術(shù)。在一定的程度上,這個(gè)參數(shù)的上部和下部地面可采用該技術(shù)解耦。</p><p><b> 四,控制系統(tǒng)編程</b></p><p> 該P(yáng)C軟甲的開(kāi)發(fā)由北
77、京組態(tài)王6。51控制。這個(gè)配置軟件具有可靠性高,開(kāi)發(fā)周期短,完美的圖形界面生成能力,以及友好的人機(jī)交互,可以按照創(chuàng)建動(dòng)態(tài)圖像和圖表可以直觀地顯示設(shè)備的布局場(chǎng)景中的參數(shù),控制狀態(tài)的變化,并能發(fā)出報(bào)警信號(hào),當(dāng)超過(guò)額定值,可以實(shí)現(xiàn)模糊控制的溫室參數(shù)使用的特定數(shù)據(jù)庫(kù)中存儲(chǔ)的歷史環(huán)境參數(shù)曲線并采用農(nóng)業(yè)專家系統(tǒng)。</p><p> 軟件配置管理是由C51單片機(jī)實(shí)現(xiàn)實(shí)時(shí)解答收集、處理、上傳的參數(shù)和接受模糊控制指令從主機(jī)計(jì)算機(jī)
78、和完整的局部控制的裝置。</p><p> A.控制模塊的程序設(shè)計(jì)</p><p> 子機(jī)的軟件的土壤濕度模塊的主要功能包括數(shù)據(jù)采集和處理子程序,中斷處理和通信等,通過(guò)并行數(shù)據(jù)接口獲得駐波電壓的數(shù)值并且由函數(shù)計(jì)算獲得土壤含水量。</p><p> 軟件的子機(jī)主要與下位機(jī)完成對(duì)土壤水分檢測(cè)和控制的數(shù)據(jù)通信,測(cè)量數(shù)據(jù)和電流控制上傳狀態(tài)到主機(jī)電腦,接受模糊控制指令從
79、主機(jī)計(jì)算機(jī)輸出執(zhí)行指令。</p><p> 子機(jī)的溫度、濕度和二氧化碳的硬件模塊主要是完成讀取I2C濃度的二氧化碳濃度、溫度和濕度,測(cè)量數(shù)據(jù)和電流控制上傳狀態(tài)到主機(jī)電腦,接受模糊控制指令從主機(jī)輸出執(zhí)行指令。這個(gè)主程序和中斷子程序的溫度和濕度的模塊的結(jié)構(gòu)如圖4所示。</p><p> 串行中斷模式3采用所有從機(jī)與主機(jī)通信,傳輸數(shù)字化采集和接收指令。</p><p>
80、; B.PC和模糊控制系統(tǒng)的程序設(shè)計(jì)</p><p> 組態(tài)王6.51的通訊設(shè)置:為了確保通信的正確性,上下必須遵循相同的通信協(xié)議,通信參數(shù)。通常在通信,采用主從方式在風(fēng)格和應(yīng)答器是采用的過(guò)程。換言之,首先主發(fā)命令給子機(jī),然后等子機(jī)接到指令后給出答案,通信建立。在組態(tài)王,一個(gè)預(yù)定的輪詢方法被用來(lái)做閱讀和寫作的低機(jī)器電腦之間。在項(xiàng)目瀏覽器中,第一,單擊設(shè)備→COM1;在設(shè)備配置向?qū)е?,選擇“智能模塊”→單片機(jī)→
81、SCM的HEX→串行端口,然后服務(wù)主機(jī)的通信參數(shù)。</p><p> 組態(tài)王6.51和數(shù)據(jù)庫(kù)的連接數(shù)據(jù)庫(kù)的核心是軟件,不僅包含了定義的變量,實(shí)時(shí)參數(shù)和歷史參數(shù),但是還需要在參數(shù)報(bào)警、模糊計(jì)算、報(bào)告和顯示。ACCESS2003的桌面數(shù)據(jù)庫(kù)是用來(lái)記錄數(shù)據(jù)庫(kù)的系統(tǒng),并通過(guò)使用SQL,由組態(tài)王通過(guò)開(kāi)放式數(shù)據(jù)庫(kù)連接性實(shí)現(xiàn)的。這個(gè)過(guò)程是:在組態(tài)王來(lái)創(chuàng)建數(shù)據(jù)變量創(chuàng)建一個(gè)身體的記錄建立數(shù)據(jù)源的ODBC來(lái)創(chuàng)建查詢屏幕和使屏幕連接
82、。到與微軟Access2003,功能SQLSelect ,SQLConnect(),SQLLast SQLFist ,SQLNext(),QSLPrew(),SQLInsrt ,SQLPrew()等等,實(shí)現(xiàn)的命令語(yǔ)言,然后實(shí)時(shí)存儲(chǔ)和查詢的數(shù)據(jù)完成。</p><p> PC軟件設(shè)計(jì):溫室控制系統(tǒng),數(shù)據(jù)存儲(chǔ)容量的PC是無(wú)限的,因此,如果現(xiàn)有的成熟的軟件模塊到系統(tǒng),它都可以輕松提高系統(tǒng)的可靠性。軟件,軟件由控制模塊和
83、管理模塊。</p><p> 軟件系統(tǒng)的主控制界面,輔助數(shù)據(jù)庫(kù)等。典型的監(jiān)測(cè)和控制的PC的主界面如圖5所示。</p><p><b> 五,結(jié)論</b></p><p> 根據(jù)經(jīng)濟(jì)承受能力,農(nóng)民在秦皇島,與現(xiàn)有技術(shù)的溫室環(huán)境參數(shù)的監(jiān)測(cè)和控制,主從分布式溫室環(huán)境自動(dòng)控制系統(tǒng)在其中一臺(tái)計(jì)算機(jī)作為主機(jī)系統(tǒng),研制了具有以下特點(diǎn):</p>
84、;<p> 憑借其大容量的數(shù)據(jù)存儲(chǔ),PC,模糊控制專家系統(tǒng)的數(shù)據(jù)存儲(chǔ),修改和系統(tǒng)升級(jí)是很容易的。</p><p> 使用組態(tài)王軟件開(kāi)發(fā)的PC,提高了系統(tǒng)的可靠性,縮短開(kāi)發(fā)周期,并獲得一個(gè)友好的人機(jī)界面。</p><p> 系統(tǒng)中使用的一個(gè)分布式,模塊化結(jié)構(gòu),它使系統(tǒng)維護(hù)更加容易,并且適應(yīng)生產(chǎn)需要。的從屬的監(jiān)測(cè)和控制模塊連接到主機(jī)上,然后根據(jù)需要通過(guò)RS485總線控制溫室
溫馨提示
- 1. 本站所有資源如無(wú)特殊說(shuō)明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請(qǐng)下載最新的WinRAR軟件解壓。
- 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請(qǐng)聯(lián)系上傳者。文件的所有權(quán)益歸上傳用戶所有。
- 3. 本站RAR壓縮包中若帶圖紙,網(wǎng)頁(yè)內(nèi)容里面會(huì)有圖紙預(yù)覽,若沒(méi)有圖紙預(yù)覽就沒(méi)有圖紙。
- 4. 未經(jīng)權(quán)益所有人同意不得將文件中的內(nèi)容挪作商業(yè)或盈利用途。
- 5. 眾賞文庫(kù)僅提供信息存儲(chǔ)空間,僅對(duì)用戶上傳內(nèi)容的表現(xiàn)方式做保護(hù)處理,對(duì)用戶上傳分享的文檔內(nèi)容本身不做任何修改或編輯,并不能對(duì)任何下載內(nèi)容負(fù)責(zé)。
- 6. 下載文件中如有侵權(quán)或不適當(dāng)內(nèi)容,請(qǐng)與我們聯(lián)系,我們立即糾正。
- 7. 本站不保證下載資源的準(zhǔn)確性、安全性和完整性, 同時(shí)也不承擔(dān)用戶因使用這些下載資源對(duì)自己和他人造成任何形式的傷害或損失。
最新文檔
- 基于單片機(jī)的糧倉(cāng)溫濕度控制
- 基于單片機(jī)的溫濕度控制系統(tǒng)設(shè)計(jì)
- 基于單片機(jī)的溫濕度控制系統(tǒng)設(shè)計(jì)
- 基于單片機(jī)的溫濕度檢測(cè)
- 基于單片機(jī)溫濕度監(jiān)測(cè)系統(tǒng)設(shè)計(jì)
- 基于51單片機(jī)溫濕度采集控制系統(tǒng)
- 基于單片機(jī)的溫濕度檢測(cè)
- 基于avr單片機(jī)的溫濕度采集系統(tǒng)
- 單片機(jī)及溫濕度傳感器的發(fā)展外文翻譯
- 基于單片機(jī)的溫濕度控制系統(tǒng)的設(shè)計(jì).pdf
- 基于單片機(jī)的大棚溫濕度控制系統(tǒng)的設(shè)計(jì)
- 基于51單片機(jī)的溫濕度及氣壓檢測(cè)系統(tǒng)
- 基于單片機(jī)的溫濕度檢測(cè)系統(tǒng)的設(shè)計(jì)
- 畢業(yè)論文-基于單片機(jī)的溫濕度控制系統(tǒng)
- 基于單片機(jī)的溫濕度檢測(cè)控制系統(tǒng)設(shè)計(jì)
- 基于單片機(jī)大棚溫濕度監(jiān)控系統(tǒng)設(shè)計(jì)
- 基于單片機(jī)的溫濕度控制系統(tǒng)畢業(yè)設(shè)計(jì)
- 基于51單片機(jī)的溫濕度檢測(cè)控制系統(tǒng)
- 基于51單片機(jī)的溫濕度及氣壓檢測(cè)系統(tǒng).docx
- 基于單片機(jī)的溫濕度檢測(cè)系統(tǒng)的設(shè)計(jì).pdf
評(píng)論
0/150
提交評(píng)論