微计算机信息
微計算機信息
미계산궤신식
CONTROL & AUTOMATION
2010年
5期
104-106,115
,共4页
c#%PLC%HostLink协议%串口通信%数据采集
c#%PLC%HostLink協議%串口通信%數據採集
c#%PLC%HostLink협의%천구통신%수거채집
c#%PLC%HostLink protocol%serial port communication%data collection
文章对欧姆龙CS系列PLC的HostLink通信协议进行了介绍,并提出了使用c控件实现PLC与上位机通信的方法,给出了实现通信的具体步骤以及优化的通信方案,这种通信方案保证了通信的准确性,提高了通信的实时性.通过上位机对PLC的读写,实现了对工业现场数据的自动采集,可以有效地对工业现场设备进行监控和管理.编写的串口通信软件在实际项目中得到了成功应用,验证了它的可靠性和稳定性.
文章對歐姆龍CS繫列PLC的HostLink通信協議進行瞭介紹,併提齣瞭使用c控件實現PLC與上位機通信的方法,給齣瞭實現通信的具體步驟以及優化的通信方案,這種通信方案保證瞭通信的準確性,提高瞭通信的實時性.通過上位機對PLC的讀寫,實現瞭對工業現場數據的自動採集,可以有效地對工業現場設備進行鑑控和管理.編寫的串口通信軟件在實際項目中得到瞭成功應用,驗證瞭它的可靠性和穩定性.
문장대구모룡CS계렬PLC적HostLink통신협의진행료개소,병제출료사용c공건실현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 communica-tion 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.