隨著控制系統(tǒng)的發(fā)展,系統(tǒng)越來越復雜,需要監(jiān)控的系統(tǒng)參數(shù)也越來越多。同時為了減少現(xiàn)場環(huán)境對人身的傷害,要求控制人員最好能遠離現(xiàn)場。由此產(chǎn)生了一系列組態(tài)軟件,編寫上位機監(jiān)控軟件,進行遠程監(jiān)控。
本文介紹了基于MCGS和單片機的遠程液位監(jiān)控系統(tǒng)的硬件和軟件設計。上位機采用嵌入式WINCE操作系統(tǒng)和MCGS嵌入式組態(tài)軟件,對液位和溫度信息進行實時監(jiān)控;下位機以單片機為核心,進行液位和溫度信息的采集和轉(zhuǎn)換,并與上位機進行信息交互;上位機和下位機通過串口方式進行通信。
組態(tài)軟件MCGS(Monitor and Control Generated System)提供了大多數(shù)常用硬件設備的驅(qū)動,然而在實際應用中對于特殊的硬件設備,MCGS的驅(qū)動就不能滿足要求。因此為了解決組態(tài)軟件MCGS與所用特殊硬件設備通信的問題,利用MCGS的腳本開發(fā)工具,完成與所用單片機相匹配的子設備驅(qū)動構(gòu)件的開發(fā)。通過測試與掛接,實現(xiàn)了MCGS與STC12C5608單片機的通信。
關鍵詞:嵌入式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.