# Modbus 64bit float

**URL:** <https://community.openhab.org/t/modbus-64bit-float/89531>\
**Category:** Bindings\
**Created:** [January 4, 2020, 11:18pm UTC](https://community.openhab.org/t/modbus-64bit-float/89531 "2020-01-04T23:18:58Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![luki](https://community.openhab.org/user_avatar/community.openhab.org/luki/32/47911_2.png) [@luki](https://community.openhab.org/u/luki)\
**Post date:** [January 4, 2020, 11:18pm UTC](https://community.openhab.org/t/modbus-64bit-float/89531/1 "2020-01-04T23:18:59Z")

</div>

Hi together,

i bought a meter with a modbus-tcp interface. I can access all registers except those which contain the energy value. According to the datasheet of the meter this is a 64bit numeric value. Unfortunately, this is not available as datatype in the binding. For int and uint 64 types are already existing…

Does someone know a workaround?

Thanks and best,  
Luki

---

<div class="post-metadata">

**Author:** ![rossko57](https://community.openhab.org/user_avatar/community.openhab.org/rossko57/32/70263_2.png) [@rossko57](https://community.openhab.org/u/rossko57)\
**Post date:** [January 4, 2020, 11:29pm UTC](https://community.openhab.org/t/modbus-64bit-float/89531/2 "2020-01-04T23:29:56Z")

</div>

There are about eight different ways to assemble the raw registers and bytes into a 64-bit word.

I would recommend first finding out the byte pattern for your source device.  
You may be able to read the 4 registers as 64-bit uint, or you might need to read as 16-bit uints and assemble parts into your 64-bit word in the required order..  
Then find a java IEE (presumably?) decode for the float data.
