HEX decimal data points to decimal

Hi,

I don’t think that you have to convert from hex to dec, because both values are only the same representation of a 32bit value in different number systems.
As Modbus defines it’s registers as 16bit values, higher values (for example 32bit integers and also 32bit reals) have to be “split” into two registers for transfer.
Please have a look here for a example about 32bit real (the way it could be done is also valid for 32bit integers):

Best regards!

1 Like