摘要
以Modbus总线协议为例,设计了一种应用在主从式总线测控系统中的软件设置从机地址的方式。利用用户自定义广播命令结合虚地址二分法,收集从设备特征字符串,完成从机通信地址的自动分配。软件方法较硬件设定地址方法更加灵活、便捷、高效。
Based on Modbus protocol,the method is designed that refers to setting slave address by software applied in master-slave bus measurement and control system.To achieve automatic allocation of slave device communication addresses,it combines user-defined broadcast commands with virtual address dichotomy and collects slave device characteristic strings,which makes itself more flexible,convenient and efficient than the hardware address setting method.
作者
高位肖
刘院英
Gao Weixiao;Liu Yuanying(Information&Technology College,Hebei University of Economics and Business,Shijiazhuang 050061,China)
出处
《单片机与嵌入式系统应用》
2019年第12期26-28,共3页
Microcontrollers & Embedded Systems
基金
河北经贸大学校级教学研究项目(2019JYY59)