| 设计 任务书 文档 开题 答辩 说明书 格式 模板 外文 翻译 范文 资料 作品 文献 课程 实习 指导 调研 下载 网络教育 计算机 网站 网页 小程序 商城 购物 订餐 电影 安卓 Android Html Html5 SSM SSH Python 爬虫 大数据 管理系统 图书 校园网 考试 选题 网络安全 推荐系统 机械 模具 夹具 自动化 数控 车床 汽车 故障 诊断 电机 建模 机械手 去壳机 千斤顶 变速器 减速器 图纸 电气 变电站 电子 Stm32 单片机 物联网 监控 密码锁 Plc 组态 控制 智能 Matlab 土木 建筑 结构 框架 教学楼 住宅楼 造价 施工 办公楼 给水 排水 桥梁 刚构桥 水利 重力坝 水库 采矿 环境 化工 固废 工厂 视觉传达 室内设计 产品设计 电子商务 物流 盈利 案例 分析 评估 报告 营销 报销 会计 | |||||
|
|||||
|
|||||
|
|||||
摘 要
现代工业控制系统通常以PC机为上位机,通过与现场工控设备如PLC等的数据交换与处理,实现对工业生产的过程控制。这就促进了上位机与现场工控设备通信手段的不断发展和完善。西门子S7-300 PLC因其功能强、速度快、扩展灵活,在广大工业控制领域中占有重要地位。目前,S7-300PLC与PC的通信是通过专用接口卡5611卡和MPI电缆实现的。通信软件为STEP7、PRODAVE_S7_mini以及功能十分强大的WinCC。但是,对于较小的工业控制系统使用这样的软硬件,成本相对昂贵,同时对操作人员的技术要求也较高。本课题着重研究通过VB自编通信程序,使用普通串口,实现上位机与PLC的自由通信。关键词:S7-300PLC;串口通信;vb
AbstractModern 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
目 录
摘 要 1Abstract 2目 录 31 绪论 41.1 引言 41.2 Visual Basic串口通信技术的研究背景与前景 42 串口通信 62.1 串口通信的基本概念 62.1.1 并行通信与串行通信 62.1.2 串行通信工作模式 72.1.3 异步传输与同步传输 72.1.4 握手信号 72.1.5 通信参数 82.2 RS-232串口通信标准 92.2.1 电气特性 92.2.2 接口连接器 92.2.3 近距离通信线路连接 102.3 计算机中的串行端口 112.3.1 查看串行端口信息 112.3.2 串行端口的中断 132.3.3 串行端口的地址 152.4 串口通信测试 152.4.1 系统连接 152.4.2 温度测量与控制 162.4.3 计算机串口设置 162.4.4 串口程序的使用 173 Visual Basic与串口通信 183.1 MSComm控件 183.1.1 MSComm控件处理通信的方式 183.1.2 MSComm控件的引用 183.1.3 MSComm控件的常用属性 193.1.4 MSComm控件的事件 203.1.5 MSComm控件通信步骤 203.2 API函数 203.2.1 动态链接库与API函数 203.2.2 Visual Basic与动态链接库 213.2.3 用API文本浏览器声明API函数 213.2.4 与串口通信有关的API函数 233.3 直接访问端口 234 利用MSComm控件实现PC双串口互通信 254.1 硬件连接 254.2 软件实现 254.2.1 MSComm简介 254.2.2数据监测程序 254.2.3监测结果 26总 结 28参考文献 29致 谢 30
毕业66资料站 biye66.com ©2015-2026 版权所有 | 微信:15573586651 QQ:3903700237
本站毕业设计和毕业论文资料均属原创者所有,仅供学习交流之用,请勿转载并做其他非法用途.如有侵犯您的版权有损您的利益,请联系我们会立即改正或删除有关内容!