隨著控制系統(tǒng)的發(fā)展,系統(tǒng)越來越復(fù)雜,需要監(jiān)控的系統(tǒng)參數(shù)也越來越多。同時(shí)為了減少現(xiàn)場(chǎng)環(huán)境對(duì)人身的傷害,要求控制人員最好能遠(yuǎn)離現(xiàn)場(chǎng)。由此產(chǎn)生了一系列組態(tài)軟件,編寫上位機(jī)監(jiān)控軟件,進(jìn)行遠(yuǎn)程監(jiān)控。
本文介紹了基于MCGS和單片機(jī)的遠(yuǎn)程液位監(jiān)控系統(tǒng)的硬件和軟件設(shè)計(jì)。上位機(jī)采用嵌入式WINCE操作系統(tǒng)和MCGS嵌入式組態(tài)軟件,對(duì)液位和溫度信息進(jìn)行實(shí)時(shí)監(jiān)控;下位機(jī)以單片機(jī)為核心,進(jìn)行液位和溫度信息的采集和轉(zhuǎn)換,并與上位機(jī)進(jìn)行信息交互;上位機(jī)和下位機(jī)通過串口方式進(jìn)行通信。
組態(tài)軟件MCGS(Monitor and Control Generated System)提供了大多數(shù)常用硬件設(shè)備的驅(qū)動(dòng),然而在實(shí)際應(yīng)用中對(duì)于特殊的硬件設(shè)備,MCGS的驅(qū)動(dòng)就不能滿足要求。因此為了解決組態(tài)軟件MCGS與所用特殊硬件設(shè)備通信的問題,利用MCGS的腳本開發(fā)工具,完成與所用單片機(jī)相匹配的子設(shè)備驅(qū)動(dòng)構(gòu)件的開發(fā)。通過測(cè)試與掛接,實(shí)現(xiàn)了MCGS與STC12C5608單片機(jī)的通信。
關(guān)鍵詞:嵌入式HMI,串行通信,組態(tài)軟件
ABSTRACT
With the development of control system, systems become more and more complicated, requiring monitoring of system parameters is also increasing. Meanwhile, in order to reduce on-site environment for personal injury, the system requires the workman far from the scene environment. In this way a series of configuration software are produced to exploit monitoring software of upper PC.
This article introduced with emphasis the hardware and software design in the long-distance fluid position system based on the single chip and MCGS.The host computer control system adopts the embedded WINCE operation system and MCGS configuration software in embedded version, the MCGS software carries on the real-time monitoring to the fluid position and temperature information; the lower position machine takes the single chip as a core, gathering and transforming the fluid position and temperature information; The upper position machine and the lower position machine communicate through the serial port.
Configuration software MCGS (Monitor and Control Generated System) has provided the majority commonly used hardware equipment's actuation, however in the practical application regarding the special hardware equipment, the MCGS actuation cannot satisfy the request. Therefore to solve the matching problem of configuration software MCGS and its special hardware driver, uses MCGS the script development kit, completes the development of SCM driver-component. The communication between MCGS and STC12C5608 microcontroller is achieved through testing and articulation of custom single-chip components.
Keywords: Embedded HMI, Serial communication, Configuration software.