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

基于自由口模式的通信软件开发及应用
引用本文:侯东明,赵志诚,张井岗.基于自由口模式的通信软件开发及应用[J].太原科技大学学报,2010,31(1):14-18.
作者姓名:侯东明  赵志诚  张井岗
作者单位:太原科技大学电子信息工程学院,太原,030024
基金项目:山西省研究生优秀创新项目 
摘    要:介绍了基于自由口模式的S7-200PLC与上位机之间通信程序的开发及其在液压支架试验台监控系统中的应用。上下位机之间的通信方式选择主从方式,其中上位机处于主动态,通信程序采用VB中的MSComm控件进行开发,由于该控件巧妙地将复杂的Windows编程封装起来,从而使得编程简单。在对PLC中特殊寄存器设置的基础上,完成自由口通信协议的定义,并通过接收中断、发送中断、发送指令(XMT)和接收指令(RCV)实现了监控系统的通信。将该方法应用于液压支架试验台监控系统,实验结果表明系统通信过程稳定、效果良好,具有一定的实际意义。

关 键 词:S7-200  PLC  VB  MSComm  自由口模式

Development and Application of Communication Software Based on Free Port Mode
HOU Dong-ming,ZHAO Zhi-cheng,ZHANG Jing-gang.Development and Application of Communication Software Based on Free Port Mode[J].Journal of Taiyuan University of Science and Technology,2010,31(1):14-18.
Authors:HOU Dong-ming  ZHAO Zhi-cheng  ZHANG Jing-gang
Institution:HOU Dong-ming,ZHAO Zhi-cheng,ZHANG Jing-gang(School of Electronic Information Engineering,Taiyuan University of Science, Technology,Taiyuan 030024,China)
Abstract:This paper discusses the program development of communication between S7-200 PLC and upper computer based on the free port mode and the application in the supervisory control system of hydraulic support test-bed.The master-slave mode is chosen,and the upper computer is always active.The communication program of the upper computer is developed using MSComm in VB which makes programming easy due to packing complex Windows codes ingeniously.On the base of setting special register in PLC,the communication proto...
Keywords:S7-200 PLC  VB  MSComm
本文献已被 CNKI 维普 万方数据 等数据库收录!
设为首页 | 免责声明 | 关于勤云 | 加入收藏

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