文档详情

基于嵌入式STM32的Modbus RTU协议实现.pdf

发布:2017-05-27约2.73万字共5页下载文档
文本预览下载声明
20 14 11 年第 期 仪 表 技 术 ·33 · 基于嵌入式STM32 的Modbus RTU 协议实现 , , , 宋 磊 彭道刚 赵斌斌 黄 丽 ( , 200090) 上海电力学院 自动化工程学院 上海 :: ,Modbus 、 , 。 摘要 随着工业现场总线技术的快速发展 协议以其高效性 可靠性 广泛应用于电力行业 为了提高电厂对数据采 , Modbus 32 STM32F103ZE , 集的可靠性和实时性 提出了将 通信协议与 位 微处理器相结合的设计方案 介绍了系统的总体设计方案 Modbus 。 C / OS-II Modbus RTU , 和 通信协议的内容 在嵌入式实时操作系统 μ 上实现了基于 通信协议的主站和从站的通信 并详细 Modbus CRC 。 , Modbus , 讨论了 通信协议中 校验码的生成 实验结果表明 该方案有效地实现了 协议 可以广泛地应用于电厂和其他 工业现场。 : ;Modbus ; ;STM32 ;C / OS-II 关键词 嵌入式系统 协议 数据采集 处理器 μ 中图分类号:TP39 文献标志码:A 文章编号:1006-2394 (2014)11-0033-04 Implementation of Modbus RTU Communication Protocol Based on STM32 SONG Lei ,PENG Dao-gang ,ZHAO Bin-bin ,HUANG Li (School of Automation Engineering ,Shanghai University of Electric Power ,Shanghai 200090 ,China) Abstract :With the rapid development of industrial field bus technology ,the Modbus protocol is widely used in e- lectric power industry because of its high efficiency and reliability. In order to improve the reliability and real-time per- formance of data acquisition of the power plant ,this paper puts forward a design of Modbus communication protocol with a 32-bit STM32F103ZE microprocessor. The overall design scheme of the system and the content of Modbus Communica- tion Protocol are introduced. The communicatio
显示全部
相似文档