1
Support Questions / Read two consecutive 16 bit register - Modbus
« on: February 04, 2016, 09:10:21 AM »
Hi
From a device I like to read a parameter. Each parameter is held in two consecutive 16 bit register.
The data used, is in 32 bit IEEE 754 floating point format.
If I send the Requests:
01 04 00 00 00 02 71 F8
Adress:1
Function code:04
Starting address:0000
Quantity of registers:0002
I get:
01 04 04 43 65 7F 88 ED 49
Values: 43 65 7F 88
1. register "43 65" is the same as 17253 (Dec) and 0100001101100101 (bin)
2. register "7F 88" is the same as 32648 (Dec) and 0111111110001000 (bin)
and together
"43 65 7F 88" is 01000011011001010111111110001000
If I run this through "http://www.h-schmidt.net/FloatConverter/IEEE754.html"
I get 229.49817
It super and correct
Is there a way to read this through "ModbusRTUCom"
I think I've tried many things, but get some strange numbers
From a device I like to read a parameter. Each parameter is held in two consecutive 16 bit register.
The data used, is in 32 bit IEEE 754 floating point format.
If I send the Requests:
01 04 00 00 00 02 71 F8
Adress:1
Function code:04
Starting address:0000
Quantity of registers:0002
I get:
01 04 04 43 65 7F 88 ED 49
Values: 43 65 7F 88
1. register "43 65" is the same as 17253 (Dec) and 0100001101100101 (bin)
2. register "7F 88" is the same as 32648 (Dec) and 0111111110001000 (bin)
and together
"43 65 7F 88" is 01000011011001010111111110001000
If I run this through "http://www.h-schmidt.net/FloatConverter/IEEE754.html"
I get 229.49817
It super and correct
Is there a way to read this through "ModbusRTUCom"
I think I've tried many things, but get some strange numbers