论文部分内容阅读
介绍了利用Visual C++,通过TCP/IP协议,采用重叠I/O方式,编写计算机程序,在西门子S7-400 PLC中调用FC50/FC60发送/接受功能块,实现计算机和S7-400PLC之间大批量数据的快速稳定的交换,实现网络断线恢复正常后,通讯程序自动恢复正常功能;该程序模块可以作为一个中间件,在各种项目中使用,减少西门子OPC通讯中间件的使用,节约工程成本。
Introduced the use of Visual C + +, through the TCP / IP protocol, the use of overlapping I / O mode, the preparation of computer programs, Siemens S7-400 PLC call FC50 / FC60 send / receive function blocks to achieve high volumes between the computer and the S7-400PLC Fast and stable data exchange, to achieve network disconnection back to normal, the communication program automatically resume normal function; The program module can be used as a middleware in a variety of projects to reduce the use of Siemens OPC communication middleware, saving engineering costs .