作者投稿和查稿 主编审稿 专家审稿 编委审稿 远程编辑

计算机工程 ›› 2009, Vol. 35 ›› Issue (4): 103-104. doi: 10.3969/j.issn.1000-3428.2009.04.036

• 网络与通信 • 上一篇    下一篇

基于VB的PC机与多台PLC的通信研究

周 敏,李凤婷,吴为民   

  1. (新疆大学电气工程学院,乌鲁木齐 830008)
  • 收稿日期:1900-01-01 修回日期:1900-01-01 出版日期:2009-02-20 发布日期:2009-02-20

Research on Communication Between PC and Multi-PLC Based on VB

ZHOU Min, LI Feng-ting, WU Wei-min   

  1. (Institute of Electrical Engineering, Xinjiang University, Urumqi 830008)
  • Received:1900-01-01 Revised:1900-01-01 Online:2009-02-20 Published:2009-02-20

摘要: 介绍在VB6.0环境下实现PC机与PLC的自由口通信,根据PC机与PLC通信的基本特点以及自由口通信的特点,研究实验中PC机与多台PLC的通信流程以及通信方式。将VB和Windows下的API函数相结合编程得到不同通信方式下PC机与多台PLC之间的通信时间。比较了不同通信方式在通信时间和结构上的优缺点,给出了不同通信场合下的应用实例。

关键词: VB6.0环境, 可编程控制器, 自由口, 通信

Abstract: The communication between PC and PLC is realized under free port mode based on VB6.0. In the experiment, on the basis of the characteristics of PC and PLC communications and free port communication features, PC-PLC process and means of communication are studied. The combination of VB and the Windows API functions can gain the time of communications between PC and multi-PLC in different means of communication. The advantages and the disadvantages of different forms of communication in the communication time and the structure are compared, and implementation instances are presented to different communications occasions.

Key words: VB6.0, programmable controller, free port, communication

中图分类号: