摘要
介绍了一种利用Snap7的C++协议库编写以太网S7客户端的方法。首先介绍了Snap7客户端的建立、连接服务器及读写数据的方法,然后通过该方法编写了基于Qt及MFC的以太网客户端,并通过PLC现场项目测试验证了编程的正确性,具有一定的借鉴意义。
This paper introduces a method of using Snap7's C++ protocol library to write Ethernet S7 client. Firstly, the establishment of Snap7 client, the method of connecting server and reading and writing data are introduced. Then, the Ethernet client based on Qt and MFC is compiled by this method. The correctness of programming is verified by the field test of PLC, which provides certain reference significance.
作者
李坡
王丹
LI Po;WANG Dan(Nanjing Institute of Industry Technology,Nanjing 210023,China)
出处
《江苏高职教育》
2019年第1期56-59,共4页
Jiangsu Higher Vocational Education
基金
江苏省高校自然科学基金面上项目(编号:17KJB510027)