首页 | 本学科首页   官方微博 | 高级检索  
     检索      

基于HostLink协议的PLC与上位机串口通信的实现
引用本文:刘正琼,徐海卫,潘媛,丁强.基于HostLink协议的PLC与上位机串口通信的实现[J].合肥工业大学学报(自然科学版),2008,31(12).
作者姓名:刘正琼  徐海卫  潘媛  丁强
作者单位:合肥工业大学,计算机与信息学院,安徽,合肥,230009
摘    要:文章对欧姆龙CJ系列PLC的HostLink通信协议进行了详细的介绍,提出了利用VB的ActiveX控件MSComm实现PLC与上位机通信的方法,给出了PLC与PC串口通信的软件设计流程。通过上位机对PLC的读/写,实现了对现场数据的自动采集,可以有效地对工业现场设备进行监控和管理。编写的串口通信软件在制造执行系统(MES)中得到了成功应用,验证了它的可靠性和稳定性。

关 键 词:数据采集  HostLink协议  串口通信

Realization of serial port communication between the PLC and the host-computer based on HostLink protocol
LIU Zheng-qiong,XU Hai-wei,PAN Yuan,DING Qiang.Realization of serial port communication between the PLC and the host-computer based on HostLink protocol[J].Journal of Hefei University of Technology(Natural Science),2008,31(12).
Authors:LIU Zheng-qiong  XU Hai-wei  PAN Yuan  DING Qiang
Abstract:The HostLink communication protocol of the PLC of OMRON CJ series is introduced in this paper.The method for realizing the communication between the PLC and the host-computer is presented by means of a kind of ActiveX control named MSComm.The software design flow of serial communication between the PLC and the PC is also described.Through reading and writing of the host-computer from or to the PLC,automatic collection of field data is realized,and the device can be monitored and controlled effectively.The serial communication software is proved to be reliable and stable through the successful application in the manufacture execution system(MES).
Keywords:PLC
本文献已被 CNKI 万方数据 等数据库收录!
设为首页 | 免责声明 | 关于勤云 | 加入收藏

Copyright©北京勤云科技发展有限公司  京ICP备09084417号