毕业论文

打赏
当前位置: 毕业论文 > 电子通信 >

S7-1200串口通信数据采集程序设计+源程序

时间:2022-10-08 20:16来源:毕业论文
对S7-1200硬件和STEP7 V13软件进行了学习,熟悉了S7-1200各模块的功能,掌握了通信指令和主程序设计步骤。其次对两种协议的原理进行了详细的研究,自由口通信协议用于实现两台设备间的

摘要串口通信因其数据采集方便,设备易于调试和维护,被广泛应用于数据采集领域。本课题基于串口通信技术,分别采用自由口通信协议和Modbus通信协议,实现了S7-1200对串口通信设备的数据采集。84419

本文首先对S7-1200硬件和STEP7 V13软件进行了学习,熟悉了S7-1200各模块的功能,掌握了通信指令和主程序设计步骤。其次对两种协议的原理进行了详细的研究,自由口通信协议用于实现两台设备间的数据采集任务,Modbus通信协议用于实现一台设备对多台设备的数据采集。最后进行了基于自由口协议的编程和基于Modbus协议的编程,实现了S7-1200对串口通信设备的数据采集。

本课题对编写的串口通信程序进行了测试,由软件监控结果表明,设计的程序满足本课题的要求,达到了设计目的。

毕业论文关键词:S7-1200PLC;串口通信;通信协议

Abstract Serial communication is widely used in the field of data acquisition because it is easy to debug and maintain。 This paper based on serial communication technology, using the free port communication protocol and Modbus communication protocol, to achieve the S7-1200 data acquisition for serial communication equipment。

In this paper, we first study the S7-1200 hardware and STEP7 V13 software, familiar with the function of each module of S7-1200, and master the communication instructions and the main program design steps。 Secondly, a detailed study of the principle of the two protocols, the free port communication protocol to realize data acquisition task between two devices, Modbus communication protocol to realize data acquisition of a device for multiple devices。 Finally, based on free port protocol and programming based on Modbus protocol programming, realized the S7-1200 data acquisition for serial communication equipment。

This paper tested the serial communication program, indicated by the software monitoring results, design programs to meet the requirements of the project, to achieve the design objective。

Keywords: S7-1200 PLC; serial communication; communication protocol

目  录

第一章 绪论 1

1。1课题的研究目的和意义 1

1。2课题研究现状及问题 1

1。3本课题的主要工作内容和结构安排 2

1。3。1本课题的主要工作 2

1。3。2本课题的结构安排 2

第二章 S7-1200介绍 4

2。1 S7-1200特点 4

2。2 S7-1200硬件结构 4

2。3 CPU模块 4

2。3。1信号板与信号模板 5

2。3。2通信模块 6

2。4程序架构组织块OB 7

2。5编程软件介绍 8

2。5。1操作界面介绍 8

2。5。2编程和下载界面介绍 8

2。6本章小结 11

第三章 协议规范 12

3。1点对点通信 12

3。1。1基本概念 12

3。1。2串口通信协议 13

3。1。3串行通信的轮询结构 13

3。2 Modbus协议 S7-1200串口通信数据采集程序设计+源程序:http://www.youerw.com/tongxin/lunwen_100118.html

------分隔线----------------------------
推荐内容