摘要
针对分布式控制系统中PC机与单片机之间多机通信这一关键技术,提出了一种在Windows环境下运用VC++6.0中MSComm控件来实现多机通信的可行方法,并简要介绍了VC++6.0的MSComm控件以及多机通信的原理,给出了进行多机通信的具体实现步骤与通信程序的主要代码。该方法简化了复杂的通信协议,使串口编程便于设计,形成一套经济可靠的数据采集、存储系统,可应用到多种分布式控制系统中。
In order to realize multi-computer communication between the PC and MCU that has become essential technology in the distributed control system,an approach of adopting the MSComm control component in VC++ 6.0 is presented.And the MSComm control component in VC++ 6.0 is introduced and the principle of multi-computer communication is discussed.The steps of multi-computer communication and the communication program are also provided.The communication protocol is simplified and the serial-port program is easy to design, which can form a set of economical and reliable systems in data acquisition and data memory,which can also be used in many kinds of distributed control systems.
出处
《辽宁工程技术大学学报(自然科学版)》
CAS
北大核心
2005年第z2期132-134,共3页
Journal of Liaoning Technical University (Natural Science)