摘要
分布式测温系统由上位机管理站与多个监测站组成。文中叙述了多机通信电路的构成与多机通信协议格式,详细阐述了多机通信接收程序设计。对串行口中断服务程序的特殊处理进行了分析与说明并给出了详细的流程图。文中分析研究了多机通信实现思路,并利用协议进行监测站地址的比较并实现功能跳转,实现了上位机管理站下传并更改指定房间报警上限的功能。文中利用VB语言在上位机管理站进行了界面设计,完成了数据通信控件属性定义以及程序设计,设计了下传报警上限界面等,实现了分布式测温系统中多机通信数据的交换,实现了多个房间温度的实时监测和报警,实现了多机通信的管理。
The distributed temperature measurement system consists of computer management station and many monitoring stations. This paper describes configuration of multi-computer communication circuit and communication protocol format. Communication program design of receiving data is expounded. Specific process for serial port interrupt service program is analyzed and illustrated. The flow chart is given out. The realization idea of multi-computer communication is studied and analyzed. The function jump can be realized through comparing monitoring station's address by use of communication protocol. Computer management station can transfer and amend alarm upper limit for appointed room. The menu design of management station is realized by VB. Program design and communication control definition are completed. The menu of transferring alarm upper limit from management station is designed. The communication data exchange can be realized in distributed temperature measurement system. Real time temperature inspection and alarm for many rooms are accomplished. The management of multi-computer communication is realized.
出处
《微计算机信息》
2009年第17期145-147,共3页
Control & Automation
关键词
多机通信
接收数据
报警上限
Multi-computer communication
Receiving data
Alarm upper limit