摘要
为了解决工业测控系统仪表数量多,通信协议不兼容,组网困难的问题,在此给出一种Modbus从站设计方法。从站系统平台基于STM32F103处理器和μC/OS-Ⅱ嵌入式实时操作系统,通过移植μC/Modbus协议栈实现Modbus RTU从站通信功能。在此详细分析了μC/Modbus的架构和工作流程,给出了移植及使用方法,能够帮助读者快速开发出符合标准的Modbus从站设备。
In order to reduce instrumentation quantity,realize communications protocol compatibility and solve networking difficulty of industrial measurement and control system,a design method of Modbus slave is presented in this paper. The slave device platform is based on STM32F103 processor and μC/OS?II real?time embedded operating system. Modbus RTU slave com?munication function is realized by porting μC/Modbus protocol stack. The μC/Modbus architecture and workflow are analyzed in this paper. The transplantation and use methods are given to help readers to develop a qualified Modbus slave device quickly.
出处
《现代电子技术》
2014年第24期90-93,97,共5页
Modern Electronics Technique