首页|用Visual C++实现PC与PLC之间的串行通讯

用Visual C++实现PC与PLC之间的串行通讯

扫码查看
在工业控制中,常常需要对PLC的采集数据和工作状态进行监测控制,实现的方式有VB、DELPHI、PB等.Visual C++是一种Windows应用程序开发工具,在图形处理和数据库管理等方面具有较强的功能,用它来实现底层的通信控制有着更快的速度.采用Visual C++和MFC实现实时要求较高的小型控制系统中的PC和PLC的串行通讯系统,给出了系统的通讯原理和软件设计方法,实现数据的快速发送和接收,实时自动控制准确、快速.该系统简单、经济、稳定、实用性强并已成功应用于实际系统中.
Serial Communication System Between PC and PLC Based on Visual C + +
It is usually need to supervise and control gathering data and working status of PLC in industry control. There are some ways such as VB, DELPHI, PB to carry out the requirement. Visual C+ + is an exploiture tool for Windows application program and has quite strong function in the aspect of image processing and database managing etc. It has faster speed to realize bottom communication control. Using Visual C+ + and MFC, the authors implement the serial communication system between PC and PLC. The paper introduces the communication protocol and software design method and realizes data's sending and incepted rapidly, real - time auto - control accurately and quickly. This system is simple, economical, and reliable and has an application value, which has been applied successfully in real system.

Visual C + +MSCommPLCserial communication

高潮、罗强、郭永彩、扶新

展开 >

重庆大学,光电工程学院,重庆,400030

Visual C++ MSComm控件 可编程控制器 监督控制与数据采集 串行通讯

解放军军工计划

JGSJ03-S379

2006

重庆大学学报
重庆大学

重庆大学学报

CSTPCDCSCD北大核心
影响因子:0.601
ISSN:1000-582X
年,卷(期):2006.29(6)
  • 18
  • 1