摘要
采用Delphi编译器开发西门子S7-1200/1500系列PLC客户端DLL,组件通过S7系列TCP通信协议与PLC建立连接并保持心跳通信,上位机EXE通过接口调用组件,定时读取PLC寄存器数据,并支持实时写寄存器值,实现PC与PLC实时通信。
In this paper,using Delphi compiler to develop Siemens S7-1200/1500 series PLC client DLL,components connect with PLC through S7 series TCP communication protocol and maintain heartbeat communication,The upper computer EXE calls components through interface,reads PLC register value regularly,and supports real-time write register values. The research realizes real-time communication between PC and PLC.
引文
[1]龙启明,刘斌,程捷,等. Delphi 7高级编程范例[M].北京:清华大学出版社,2004.
[2]刘艺. Delphi模式编程[M].北京:机械工业出版社,2004.
[3]刘华波.西门子S7-1200 PLC编程与应用[M].北京:机械工业出版社,2011.
[4]SIEMENS AG 2009. S7-1200&STEP7 Basic V10.5[K]. Berlin&M unich:SIEM ENS,2009.
[5]SIEMENS. S7-1500 PLC手册[Z].北京:西门子(中国)有限公司,2018.
[6]SIEMENS. S7-1500做服务器端与第三方设备的TCP通信[K]. Berlin&Munich:SIEMENS,2015.