登录

  • 登录
  • 忘记密码?点击找回

注册

  • 获取手机验证码 60
  • 注册

找回密码

  • 获取手机验证码60
  • 找回
毕业论文网 > 毕业论文 > 理工学类 > 电气工程及其自动化 > 正文

基于MODBUS的MCGS与STM32的通信设计毕业论文

 2022-01-26 10:01  

论文总字数:20677字

摘 要

近年来,随着工业控制领域的大幅发展,工业组态软件已经被越来越多的人重视和应用。人们并不需要了解非常复杂的相关编程软件的知识,就可以使用工业组态软件在很短很短时间之内,完成一个水准很高的计算机监控或报警系统的开发任务。

上位机MCGS是目前在社会市场和工厂中特别常见的一种工业控制通用组态软件,上位机MCGS可以用来非常便捷地构成分布式系统中的监控画面,也可以非常便捷的动态显示控制设备的运行状态,还可以与PLC等其他下位机进行通信。

本文介绍了Modbus通信协议的特点及组成和原理;介绍并给出了RS485电路接口;介绍了数据通信领域中非常常见的一种差错校验码:crc校验。

本篇论文利用MCGS的脚本编写和界面绘制,通过STM32程序设计来实现ModBus RTU协议,从而实现MCGS与STM32单片机的通信。

关键词:上位机MCGS;ModBus RTU协议;下位机STM32

Communication Design of MCGS and STM32

Based on MODBUS

Abstract

For the past few years, with the development of industrial control field, industrial configuration software has been valued and applied by more and more people. People do not need to understand the knowledge of very complex related programming software, can use industrial configuration software in a very short time, complete a high level of computer monitoring or alarm system development tasks.

The upper computer MCGS is a kind of general configuration software for industrial control, which is particularly common in the social market and factories at present. The upper computer MCGS can be used to construct the monitoring screen in the distributed system very conveniently, can also display the running state of the control equipment very conveniently, and can communicate with PLC and other lower computers.

This paper recommends the characteristics, composition and principle of Modbus communication protocol. RS485 circuit interface is introduced and given. This paper introduces a very common error check code in the field of data communication: CRC check.

This paper USES MCGS script writing and interface drawing, through STM32 program design to achieve ModBus RTU protocol, so as to achieve MCGS and STM32 MCU communication.

Keywords:MCGS;ModBus RTUAgreement;STM32

目 录

摘要........................................................................I

ABSTRACT...............................................................II

第一章 绪论..............................................................1

1.1 课题的目的和意义...................................................1

1.2 国内研究现状.......................................................1

1.3 国外研究现状.......................................................5

第二章 硬件、算法简介...................................................7

2.1 MCGS简介.........................................................7

2.1.1 MCGS网络版.................................................8

2.1.2 MCGS通用版.................................................8

2.1.3 MCGS嵌入版.................................................9

2.2 Modbus通信协议简介...............................................12

2.3 crc校验简介.......................................................13

2.4 RS-485硬件简介...................................................13

2.5 keil简介..........................................................14

2.6 STM32微控制器简介...............................................14

第三章 通信系统设计....................................................21

3.1 系统总设计........................................................21

3.2 MCGS触摸屏的界面绘制及脚本程序的编写............................22

3.2.1 与STM32通信...............................................22

3.2.2 电机控制....................................................25

3.3 软件设计..........................................................28

第四章 通信验证.........................................................30

结论.......................................................................32

参考文献..................................................................33

致谢.......................................................................35

请支付后下载全文,论文总字数:20677字

您需要先支付 80元 才能查看全部内容!立即支付

企业微信

Copyright © 2010-2022 毕业论文网 站点地图