随着控制系统的发展,系统越来越复杂,需要监控的系统参数也越来越多。同时为了减少现场环境对人身的伤害,要求控制人员最好能远离现场。由此产生了一系列组态软件,编写上位机监控软件,进行远程监控。
本文介绍了基于MCGS和单片机的远程液位监控系统的硬件和软件设计。上位机采用嵌入式WINCE操作系统和MCGS嵌入式组态软件,对液位和温度信息进行实时监控;下位机以单片机为核心,进行液位和温度信息的采集和转换,并与上位机进行信息交互;上位机和下位机通过串口方式进行通信。
组态软件MCGS(Monitor and Control Generated System)提供了大多数常用硬件设备的驱动,然而在实际应用中对于特殊的硬件设备,MCGS的驱动就不能满足要求。因此为了解决组态软件MCGS与所用特殊硬件设备通信的问题,利用MCGS的脚本开发工具,完成与所用单片机相匹配的子设备驱动构件的开发。通过测试与挂接,实现了MCGS与STC12C5608单片机的通信。
关键词:嵌入式HMI,串行通信,组态软件
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.
目录