检索规则说明:AND代表“并且”;OR代表“或者”;NOT代表“不包含”;(注意必须大写,运算符两边需空一格)
检 索 范 例 :范例一: (K=图书馆学 OR K=情报学) AND A=范并思 范例二:J=计算机应用与软件 AND (U=C++ OR U=Basic) NOT M=Visual
作 者:刘宁宁 殷华文[1] 郭壬戌 LIU Ningning;YIN Huawen;GUO Renxu(College of Intelligent Manufacturing,Nanyang Institute of Technology,Nanyang,Henan 473004,China;Henan Zhongguang Group Co.,Ltd.,Nanyang,Henan 473004,China)
机构地区:[1]南阳理工学院智能制造学院,河南南阳473004 [2]河南中光学集团有限公司,河南南阳473004
出 处:《自动化应用》2024年第10期275-278,共4页Automation Application
摘 要:为解决Modbus-RTU通信协议中保持寄存器不能直接传递高精度浮点数的问题,设计了一种共用体数据结构,定义联合变量,将浮点数和对应的存储数组共享同一内存空间,发送端用浮点数二进制码的方式传输浮点数,接收端再用浮点数的格式读取这4个字节内的数值,实现Modbus-RTU协议的浮点数传输设计。该方法经多次数据传输测试,可同时发送多个不同精度的浮点数,数据传输简单、高效。该方法可应用于需要采用Modbus-RTU协议进行多个浮点数数据传输且精度不同的通信系统中。To solve the problem of holding registers not being able to directly transfer high-precision floating-point numbers in the Modbus-RTU communication protocol,a common body data structure is designed,which defines joint variables,shares floating-point numbers with corresponding storage arrays in the same memory space.The sender transmits floating-point numbers using floating-point binary code,and the receiver reads the values within these 4 bytes in floating-point format,achieving the floating-point number transmission design of the Modbus-RTU protocol.This method has undergone multiple data transmission tests and can simultaneously send multiple floating-point numbers with different accuracies,making data transmission simple and efficient.This method can be applied to communication systems that require the use of Modbus RTU protocol for multiple floating-point data transmission with different accuracies.
关 键 词:Modbus-RTU 温度PID 浮点数传输 共用体 IEEE 754规范
分 类 号:TH7[机械工程—仪器科学与技术] TP272[机械工程—精密仪器及机械]
正在载入数据...
正在载入数据...
正在载入数据...
正在载入数据...
正在载入数据...
正在载入数据...
正在载入数据...
正在链接到云南高校图书馆文献保障联盟下载...
云南高校图书馆联盟文献共享服务平台 版权所有©
您的IP:216.73.216.179