# Modbus driver reading incorrect floating point values

**URL:** <https://forum.inductiveautomation.com/t/modbus-driver-reading-incorrect-floating-point-values/3768>\
**Category:** Ignition\
**Created:** [December 16, 2011, 5:56pm UTC](https://forum.inductiveautomation.com/t/modbus-driver-reading-incorrect-floating-point-values/3768 "2011-12-16T17:56:31Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Greg.Buehler](https://avatars.discourse-cdn.com/v4/letter/g/ecc23a/32.png) [@Greg.Buehler](https://forum.inductiveautomation.com/u/Greg.Buehler)\
**Post date:** [December 16, 2011, 5:56pm UTC](https://forum.inductiveautomation.com/t/modbus-driver-reading-incorrect-floating-point-values/3768/1 "2011-12-16T17:56:31Z")

</div>

I’m having issues reading a floating point value. It seems I’m getting incorrect values.

---

<div class="post-metadata">

**Author:** ![Kevin.Herron](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/kevin.herron/32/7259_2.png) [@Kevin.Herron](https://forum.inductiveautomation.com/u/Kevin.Herron)\
**Post date:** [December 16, 2011, 6:18pm UTC](https://forum.inductiveautomation.com/t/modbus-driver-reading-incorrect-floating-point-values/3768/2 "2011-12-16T18:18:05Z")

</div>

This one might be hard to diagnose… Is the program you’re viewing them in rounding the floats?

---

<div class="post-metadata">

**Author:** ![Kevin.Herron](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/kevin.herron/32/7259_2.png) [@Kevin.Herron](https://forum.inductiveautomation.com/u/Kevin.Herron)\
**Post date:** [December 16, 2011, 6:19pm UTC](https://forum.inductiveautomation.com/t/modbus-driver-reading-incorrect-floating-point-values/3768/3 "2011-12-16T18:19:01Z")

</div>

Oh, also, is it possible that it was at one point 10.014 and has since changed to 10.000 and your SQLTag deadband is not allowing the change?

---

<div class="post-metadata">

**Author:** ![Greg.Buehler](https://avatars.discourse-cdn.com/v4/letter/g/ecc23a/32.png) [@Greg.Buehler](https://forum.inductiveautomation.com/u/Greg.Buehler)\
**Post date:** [December 16, 2011, 6:36pm UTC](https://forum.inductiveautomation.com/t/modbus-driver-reading-incorrect-floating-point-values/3768/4 "2011-12-16T18:36:24Z")

</div>

It isn’t rounding the floats, and it isn’t a deadband issue as far as I can tell.

I was able to repeat the issue in another set of registers. The PLC was setup to write the value to 410591 - 410592 and everything read fine. We then added the second value to 410593 - 410594 , whereupon Ignition started reading the incorrect value.

---

<div class="post-metadata">

**Author:** ![Greg.Buehler](https://avatars.discourse-cdn.com/v4/letter/g/ecc23a/32.png) [@Greg.Buehler](https://forum.inductiveautomation.com/u/Greg.Buehler)\
**Post date:** [December 16, 2011, 6:55pm UTC](https://forum.inductiveautomation.com/t/modbus-driver-reading-incorrect-floating-point-values/3768/5 "2011-12-16T18:55:09Z")

</div>

Nevermind. Addressing was offset by one, and the word order was reversed…

😊

---

<div class="post-metadata">

**Author:** ![Kevin.Herron](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/kevin.herron/32/7259_2.png) [@Kevin.Herron](https://forum.inductiveautomation.com/u/Kevin.Herron)\
**Post date:** [December 16, 2011, 6:57pm UTC](https://forum.inductiveautomation.com/t/modbus-driver-reading-incorrect-floating-point-values/3768/6 "2011-12-16T18:57:19Z")

</div>

Woo! mystery solved! Surprised the numbers were coming in anywhere near as accurate in that case though…
