说到mobus,其寄存器的结构非常特殊,16位的,
这种情况下,有很多初学者犯憷,不知道如何处理了。
特别是对于float,double等类型的,
发送数据,接收数据都很难办。 怎么学习modbus开发呢?除了前面推荐的清华出版的书籍之外,
现在推荐一个非常好用的工具:
http://www.binaryconvert.com/
提供各种数据类型的16进制和十进制之间的转换:
| Online Binary-Decimal Converter |
| This converter allows you to convert numbers from decimal format to binary format and from binary format to decimal format. It supports the main variable data types used in most programming languages. It also floating point numbers (single and double precision) according to the standard IEEE754. Supported types are shown in the following table: |
|

本文针对Modbus协议中16位寄存器结构的特殊性,特别是float和double类型的数据处理难点,分享了学习Modbus开发的方法。推荐使用http://www.binaryconvert.com/工具进行16进制和十进制数据类型的转换,以辅助理解及开发。
最低0.47元/天 解锁文章
2710

被折叠的 条评论
为什么被折叠?



