基于c#和HostLink的PLC与PC机通信实现  被引量:4

Realization of serial port communication between PLC and the host computer based on HostLink protocol

在线阅读下载全文

作  者:窦义同[1] 赵世平[1] 

机构地区:[1]四川大学制造学院,四川成都610065

出  处:《微计算机信息》2010年第5期104-106,115,共4页Control & Automation

摘  要:文章对欧姆龙CS系列PLC的HostLink通信协议进行了介绍,并提出了使用c#利用Visual Studio2005中的SerialPort控件实现PLC与上位机通信的方法,给出了实现通信的具体步骤以及优化的通信方案,这种通信方案保证了通信的准确性,提高了通信的实时性。通过上位机对PLC的读写,实现了对工业现场数据的自动采集,可以有效地对工业现场设备进行监控和管理。编写的串口通信软件在实际项目中得到了成功应用,验证了它的可靠性和稳定性。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, and the device can be monitored and controlled effectively. The serial communication software is proved to be reli- able and stable through the successful application in actual project.

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

分 类 号:TP273.5[自动化与计算机技术—检测技术与自动化装置]

 

参考文献:

正在载入数据...

 

二级参考文献:

正在载入数据...

 

耦合文献:

正在载入数据...

 

引证文献:

正在载入数据...

 

二级引证文献:

正在载入数据...

 

同被引文献:

正在载入数据...

 

相关期刊文献:

正在载入数据...

相关的主题
相关的作者对象
相关的机构对象