首页 | 官方网站   微博 | 高级检索  
     

基于VB实现PLC与上位机之间的通信
引用本文:康微微,鞠振河.基于VB实现PLC与上位机之间的通信[J].沈阳工程学院学报(自然科学版),2014(4):348-352.
作者姓名:康微微  鞠振河
作者单位:辽宁太阳能研究应用有限公司 产品中心,辽宁 沈阳,110136
基金项目:辽宁省科学技术计划项目
摘    要:利用THSMS-C网络型可编程控制器实验台进行VB6.0与S7-200西门子系列PLC控制实验的调试,改善了系统在监控过程中的实时同步性。采用VB6.0编程来实现计算机监控界面的操作,针对在实验过程中需要处理的大量数据,系统采用自由口通讯协议,利用Active X控件对数据进行分类处理并保存相关信息。测试结果表明,所搭建的实验平台实现了对该实验的监控,达到了彼此同步的效果,同时验证了所设计方案具有可操作性、简单灵活、实时性强、运行稳定可靠等优点。

关 键 词:可编程逻辑控制器  自由口通信协议  串行通信

Implement of Communication between PLC and PC based on Visual Basic
KANG Wei-wei,JU Zhen-he.Implement of Communication between PLC and PC based on Visual Basic[J].Journal of Shenyang Institute of Engineering:natural Science,2014(4):348-352.
Authors:KANG Wei-wei  JU Zhen-he
Affiliation:( Product Center, Liaoning Solar Energy R&D Co., LTD. ,Shenyang 110136)
Abstract:Centering on the THSM S-C type network programmable controller in the Experimental Center of school of automation,this paper realized the communication between Siemens S7-200 PLC and the host computer based on VB6.0.The objectives are to enhance the real-time monitoring function and to improve the experimental performance of PLC control system.On the one hand,the controlled interface of man-machine is designed by VB6.0,which can input parameters in need and display real-time output results.And the serial communication Active X controller M SComm is provided by VB6.0,using the free port communication protocol to achieve communications between PLC and PC,then PC stores and processes the experiment data timely.This paper applies experiments to prove the correctness of the study.The results showthat the design will get good monitoring and control function,which has advantages such as economy,reliability,flexibility,real-time performance and so on.
Keywords:programmable logic controller  free port communication protocol  serial communication
本文献已被 CNKI 维普 等数据库收录!
设为首页 | 免责声明 | 关于勤云 | 加入收藏

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

京公网安备 11010802026262号