《单片机原理与应用课程设计论文-基于ModBus总线协议的温度报警设计》.docVIP

  • 5
  • 0
  • 约2.36万字
  • 约 37页
  • 2016-12-10 发布于贵州
  • 举报

《单片机原理与应用课程设计论文-基于ModBus总线协议的温度报警设计》.doc

《单片机原理与应用课程设计论文-基于ModBus总线协议的温度报警设计》

河海大学计算机与信息学院(常州) 单片机原理与应用课程设计论文 指导老师: 授课班号: 姓 名: 学 号: 课程设计(报告)任务书 (理 工 科 类) Ⅰ、课程设计(报告)题目: 基于ModBus总线协议的温度报警设计 Ⅱ、课程设计(论文)工作内容 一、课程设计目标 1、培养综合运用知识和独立开展实践创新的能力; 2、提高了我们独立发现问题、分析问题、解决问题的能力; 3、更加地了解和掌握单片机的基本知识和较复杂的程序编写,也更加深入地了解单片机及现场总线。 二、研究方法及手段应用 1、认证学习51单片机的知识,学好单片机的C51编程。 2、学习现场总线的相关知识。 3、查找有关ModBus协议的资料。 4、自己编写程序,完成六个基本功能,和拓展功能。 三、课程设计预期效果 1、熟练应用51单片机编程,掌握各个模块的应用; 1、完成最基本的六个协议功能; 2. 实现了LCD显示功能; 3、实现了相关参数的修改保存; 4、完成测温报警等功能。 学生姓名: 专业年级: 摘 要 随着现场总线在工业应用中的越来越广泛,越来越普及,Modbus作为其中的一种简单协议也受到不少的欢迎。本论文将根据Modbus协议内容的用Modbus的ASCII 模式实现读线圈、写单个线圈、写多个线圈、读寄存器、写单个寄存器、写多个寄存器这六个功能。本系统以STC89C52为基本平台,主要利用其中的RS232串口,然后用单片机的I/O口模拟协议中的线圈,在单片机中定义几个变量模拟协议中的寄存器。然后通过测量温度,与几个寄存器里的值比较判断是否报警。本系统可以实时与上位机通信,实现数据的采集,存储,判断处理等功能。另外本系统通过液晶实时显示当前线圈的状态、寄存器的值、测量的温度,另外本系统具有掉电保护的功能。 【关键词】 Modbus、线圈、寄存器、RS232、STC89C52、温度报警 ABSTRACT With fieldbus in industrial applications more widespread, more and more popular, Modbus as a simple protocol which is also welcomed by many. This paper will be based on the content of the Modbus Protocol Modbus ASCII mode to achieve with coils read and write single coil, multiple coils to write, read register, write a single register, write multiple registers of the six functions. The system STC89C52 basic platform, the main advantage of one of the RS232 serial port, then the MCU I / O port emulation protocol in the coil, several variables are defined in the SCM simulation protocol register. Then by measuring the temperature, and the number of registers in the value of the comparison to determine whether the alarm. The system can real-time communication with the host computer, data collection, storage, processing and other functions to determine. In addition the system through the liquid crystal display the current state of the coil, register values??, measurement of temperature, while the system has a power-down p

文档评论(0)

1亿VIP精品文档

相关文档