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

基于c#和HostLink的PLC与PC机通信实现
引用本文:窦义同,赵世平. 基于c#和HostLink的PLC与PC机通信实现[J]. 微计算机信息, 2010, 0(5)
作者姓名:窦义同  赵世平
作者单位:四川大学制造学院;
摘    要:文章对欧姆龙CS系列PLC的HostLink通信协议进行了介绍,并提出了使用c#利用Visual Studio2005中的SerialPort控件实现PLC与上位机通信的方法,给出了实现通信的具体步骤以及优化的通信方案,这种通信方案保证了通信的准确性,提高了通信的实时性。通过上位机对PLC的读写,实现了对工业现场数据的自动采集,可以有效地对工业现场设备进行监控和管理。编写的串口通信软件在实际项目中得到了成功应用,验证了它的可靠性和稳定性。

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

Realization of serial port communication between PLC and the host computer based on HostLink protocol
DOU Yi-tong ZHAO Shi-ping. Realization of serial port communication between PLC and the host computer based on HostLink protocol[J]. Control & Automation, 2010, 0(5)
Authors:DOU Yi-tong ZHAO Shi-ping
Affiliation:DOU Yi-tong ZHAO Shi-ping(School of Manufacturing Science , Engineering,Sichuan University,Chengdu 610065,China)
Abstract:The HostLink communication protocol of OMRON CS series PLC is introduced in this paper.The method for realizing the communication between PLC and the host computer is presented by means of c# and a control named SerialPort in Visual Studio 2005.The communacation procedure and program is also introduced in detail in the paper.This method ensures that the communication is real-time and accurate.Through reading and writing of the host computer from or to the PLC,automatic collection of field data is realized,a...
Keywords:C#  PLC  HostLink protocol  serial port communication  data collection  
本文献已被 CNKI 等数据库收录!
设为首页 | 免责声明 | 关于勤云 | 加入收藏

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