单片机课程设计modbus论文.doc

  1. 1、本文档共38页,可阅读全部内容。
  2. 2、有哪些信誉好的足球投注网站(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。
  3. 3、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载
  4. 4、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
查看更多
河海大学计算机与信息学院(常州) 单片机原理与应用课程设计论文 指导老师: 授课班号: 姓 名: 学 号: 课程设计(报告)任务书 (理 工 科 类) Ⅰ、课程设计(报告)题目: 基于ModBus总线协议的温度报警设计 Ⅱ、课程设计(论文)工作内容 一、课程设计目标 1、培养综合运用知识和独立开展实践创新的能力; 2、提高了我们独立发现问题、分析问题、解决问题的能力; 3、更加地了解和掌握单片机的基本知识和较复杂的程序编写,也更加深入地了解单片机及现场总线。 二、研究方法及手段应用 1、认证学习51单片机的知识,学好单片机的C51编程。 2、学习现场总线的相关知识。 3、查找有关ModBus协议的资料。 4、自己编写程序,完成六个基本功能,和拓展功能。 三、课程设计预期效果 1、熟练应用51单片机编程,掌握各个模块的应用; 1、完成最基本的六个协议功能; 2. 实现了LCD显示功能; 3、实现了相关参数的修改保存; 4、完成测温报警等功能。 学生姓名: 专业年级: 摘 要 ASCII 模式实现读线圈、写单个线圈、写多个线圈、读寄存器、写单个寄存器、写多个寄存器这六个功能。本系统以STC89C52为基本平台,主要利用其中的RS232串口,然后用单片机的I/O口模拟协议中的线圈,在单片机中定义几个变量模拟协议中的寄存器。然后通过测量温度,与几个寄存器里的值比较判断是否报警。本系统可以实时与上位机通信,实现数据的采集,存储,判断处理等功能。另外本系统通过液晶实时显示当前线圈的状态、寄存器的值、测量的温度,另外本系统具有掉电保护的功能。 【关键词】 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 protection. 【Key words】:Modbus 、Coil、Registers、RS232、STC89C52、Temperature alarm 目录 摘 要 3 第一章设计要求及需求 7 第一节 设计目标 7 一、基本功能 7 二、拓展功能 7 第二节 设计需求 8 第二章系统设计 8 第一节 设

文档评论(0)

精品天地 + 关注
实名认证
内容提供者

该用户很懒,什么也没介绍

1亿VIP精品文档

相关文档