首页 | 本学科首页   官方微博 | 高级检索  
     

用Winsock编程实现工业自动计量
引用本文:张国武. 用Winsock编程实现工业自动计量[J]. 控制工程, 2004, 11(1): 94-96
作者姓名:张国武
作者单位:太原钢铁集团公司,计控处,山西,太原,030003
摘    要:介绍了基于套接字机制的网络通信编程,它是TCP/IP编程的基础,可以实现网络不同节点上运行的应用程序间的相互通信。套接字依赖于系统并利用API进行网络编程实现,采用绑定-监听-连接-接收过程进行通讯连接,采用Winsock控件可以简化编程。阐述了如何利用Winsock编程和实现PB应用程序与西门子TDC应用之间的数据通讯。采用WinSock编程的系统完成了对热轧不锈钢卷的及时、准确、自动计量,具有较好的应用参考及推广价值。

关 键 词:端口  套接字  Winsock  ActiveX  功能块
文章编号:1671-7848(2004)01-0094-03
修稿时间:2003-05-06

Implementation of the Industrial Automated Measurementwith Winsock Program
ZHANG Guo-wu. Implementation of the Industrial Automated Measurementwith Winsock Program[J]. Control Engineering of China, 2004, 11(1): 94-96
Authors:ZHANG Guo-wu
Abstract:Network communication programming based on Sockets mechanism is introduced,which is the basis of TCP/IP programming to realize mutual communication between application programs of different nodes on net.Sockets depends on system, and it is realized by using network programming of API.The communication connection of Sockets is realized by the swathing-monitor-connection-receiving process,and the programming of Sockets can be simplified by using Winsock control. The way to program by using Winsock for realizing the data communication between PB application program and Siemens TDC application program is introduced. The system using Winsock program completes timely, accurate and automatic measurement of steel roll, and it has better application reference and generalization value.
Keywords:port  sockets  Winsock  ActiveX  function block
本文献已被 CNKI 维普 万方数据 等数据库收录!
设为首页 | 免责声明 | 关于勤云 | 加入收藏

Copyright©北京勤云科技发展有限公司  京ICP备09084417号