摘要
针对VisualC++具有功能强大,通信快速,实时性好等特点,分别从上位机和OmronPLC两个方面介绍了基于VisualC++的一种串口通信原理及其实现方法,并针对控制系统中多界面下串口通信的多线程等特点,结合实例重点阐述了通信模块化等一些技巧。应用结果显示,该方法简单、稳定、可靠。
Visual C++ has advantages such as powerful functions, quick communication capability, and good Real-time properties. The theory and approach of serial communication based on Visual C++ are introduced from two aspects-Computer and Omron PLC. According to the multi-thread characteristics of serial communication between interfaces in Industrial control systems, some programming techniques of communication modularization are described in detail with factual application. The application results show these techniques are simple, stable, and reliable.
出处
《控制工程》
CSCD
2004年第S1期89-92,共4页
Control Engineering of China
关键词
VC
PLC
串口通信
模块化
VC
PLC
serial communication
modularizarion