首页
会员中心
到顶部
到尾部
51单片机

实现S7-300 PLC与PC机的普通串口通信毕业论文

时间:2020/10/14 10:58:02  作者:  来源:  查看:0  评论:0
内容摘要: 摘  要   现代工业控制系统通常以PC机为上位机,通过与现场工控设备如PLC等的数据交换与处理,实现对工业生产的过程控制。这就促进了上位机与现场工控设备通信手段的不断发展和完善。   西门子S7-300 PLC因其功能强、速度快、扩展灵活,在广大工业控制领域中...

摘  要

   现代工业控制系统通常以PC机为上位机,通过与现场工控设备如PLC等的数据交换与处理,实现对工业生产的过程控制。这就促进了上位机与现场工控设备通信手段的不断发展和完善。
   西门子S7-300 PLC因其功能强、速度快、扩展灵活,在广大工业控制领域中占有重要地位。目前,S7-300PLC与PC的通信是通过专用接口卡5611卡和MPI电缆实现的。通信软件为STEP7、PRODAVE_S7_mini以及功能十分强大的WinCC。但是,对于较小的工业控制系统使用这样的软硬件,成本相对昂贵,同时对操作人员的技术要求也较高。本课题着重研究通过VB自编通信程序,使用普通串口,实现上位机与PLC的自由通信。
   
   
   关键词:S7-300PLC;串口通信;vb

   
Abstract
   
   Modern industrial control systems are generally in the PC for PC, the field of industrial equipment such as PLC data exchange and processing, the realization process of industrial production control. This will promote the continuous development of computer and the field of industrial equipment and improve the means of communication.
   
   Siemens S7-300 PLC because of its strong function, high speed, flexible expansion, occupies an important position in the field of industrial control. At present, the communication between S7-300PLC and PC is realized by a special interface card 5611 card and MPI cable. Communication software for the STEP7, PRODAVE_S7_mini and powerful WinCC. However, for the industrial control system using the software and hardware that smaller, the cost is relatively expensive, at the same time, the technical requirements of the operator is also higher. This paper focuses on the research on self communication program by VB, using the common serial port, free communication between PC and PLC.
   
   Keywords: S7-300PLC; serial communication; VB

目  录

摘  要 1
Abstract 2
目  录 3
1 绪论 4
1.1 引言 4
1.2  Visual Basic串口通信技术的研究背景与前景 4
2 串口通信 6
2.1  串口通信的基本概念 6
2.1.1 并行通信与串行通信 6
2.1.2 串行通信工作模式 7
2.1.3  异步传输与同步传输 7
2.1.4 握手信号 7
2.1.5 通信参数 8
2.2 RS-232串口通信标准 9
2.2.1 电气特性 9
2.2.2 接口连接器 9
2.2.3  近距离通信线路连接 10
2.3 计算机中的串行端口 11
2.3.1 查看串行端口信息 11
2.3.2  串行端口的中断 13
2.3.3  串行端口的地址 15
2.4  串口通信测试 15
2.4.1  系统连接 15
2.4.2  温度测量与控制 16
2.4.3  计算机串口设置 16
2.4.4  串口程序的使用 17
3  Visual Basic与串口通信 18
3.1  MSComm控件 18
3.1.1  MSComm控件处理通信的方式 18
3.1.2 MSComm控件的引用 18
3.1.3  MSComm控件的常用属性 19
3.1.4  MSComm控件的事件 20
3.1.5  MSComm控件通信步骤 20
3.2  API函数 20
3.2.1 动态链接库与API函数 20
3.2.2  Visual Basic与动态链接库 21
3.2.3 用API文本浏览器声明API函数 21
3.2.4 与串口通信有关的API函数 23
3.3 直接访问端口 23
4 利用MSComm控件实现PC双串口互通信 25
4.1 硬件连接 25
4.2 软件实现 25
4.2.1 MSComm简介 25
4.2.2数据监测程序 25
4.2.3监测结果 26
总  结 28
参考文献 29
致  谢 30


 

  


相关评论
本类推荐
    广告联系QQ:45157718 点击这里给我发消息 电话:13516821613 杭州余杭东港路118号雷恩国际科技创新园  网站技术支持:黄菊华互联网工作室 浙ICP备06056032号