摘要
工业现场经常有符合CAN总线协议的设备,往往这类设备没有通讯协议。如何通过工业计算机对这类设备进行控制是首要解决的问题。讲述用VB中的Winsock控件编写客户端和服务器应用程序,只需设置控件的属性并调用其方法就可轻易连接到一台远程机器上去;并且还可在两应用程序间进行双向交换数据,完成两机间的通信。简单、快捷、安全的实现对该类设备的控制与监视。
Always exist the equipments conformable to CAN bus protocol In industrial field. These equipments, however, have no communication protocol, thus how to control these equipments by computer becomes the important problem demanding prompt solution. This articl describes how to write client and server application program with VB Winsock controls, and its connection to a remote host could be easily implemented only by setting the controls' attribute, and also the data exchange between the two applications be done, thus realizing the communication between the two hosts and the easy, quick and safe control and monitoring of these equipments.
出处
《通信技术》
2012年第12期60-62,共3页
Communications Technology