检索规则说明:AND代表“并且”;OR代表“或者”;NOT代表“不包含”;(注意必须大写,运算符两边需空一格)
检 索 范 例 :范例一: (K=图书馆学 OR K=情报学) AND A=范并思 范例二:J=计算机应用与软件 AND (U=C++ OR U=Basic) NOT M=Visual
作 者:杨艳华[1] 周永录[1] 苏红军[2] 徐斌 黄燕燕
机构地区:[1]云南大学云南省电子计算中心,云南省高校数字媒体技术重点实验室,昆明650223 [2]昆明理工大学计算中心,昆明650500 [3]昆明华奥航星电气有限公司,昆明650118
出 处:《计算机测量与控制》2014年第2期604-606,共3页Computer Measurement &Control
基 金:国家自然科学基金项目(61063010);云南省教育厅科学研究基金项目(2013Y364;2011Y123)
摘 要:为了实现RS-232/485通用串口设备接入Modbus总线,设计了一种通用串口到Modbus RTU的协议转换器,以IAP12C5A60S2单片机为主控制器;介绍了硬件结构和电路实现方法,结合Modbus RTU协议规范提出了软件设计思想,分析协议转换关键问题并给出了解决办法;最后,采用串口调试工具STC-ISP和RCP-972仪表对协议转换器进行测试和分析,结果表明主设备发出命令帧后100 ms内收到协议转换器回传的数据帧,协议转换器能够正确实现协议转换和报文转发功能。In order to realize equipment with RS--232/485 general serial port accessing to Modbus bus, this paper designed a protocol converter between general serial port and Modbus RTU, which used single chip microcomputer IAP12C5A60S2 as CPU. First, introduced hardware structure and implementation method of circuit. Referenced to Modbus RTU protocol specifications, presented software design ide- as. Then, analyzed the key problems of protocol conversion and presented solutions. At last, tested and analyzed protocol converter by using serial port debug tool STC--ISP and instrument RCP--972. Test results indicate that data frame of protocol converter will return to main e- quipment in 100ms after command frame is sent out, and protocol converter can realize function of protocol conversion and message retrans- mission properly.
关 键 词:通用串口 MODBUS RTU 协议转换 单片机 双串口
分 类 号:TP336[自动化与计算机技术—计算机系统结构]
正在载入数据...
正在载入数据...
正在载入数据...
正在载入数据...
正在载入数据...
正在载入数据...
正在载入数据...
正在链接到云南高校图书馆文献保障联盟下载...
云南高校图书馆联盟文献共享服务平台 版权所有©
您的IP:216.73.216.15