# Problem reading Float Value from Modbus TCP

**URL:** <https://forum.inductiveautomation.com/t/problem-reading-float-value-from-modbus-tcp/16621>\
**Category:** General Discussion\
**Created:** [January 17, 2018, 3:11pm UTC](https://forum.inductiveautomation.com/t/problem-reading-float-value-from-modbus-tcp/16621 "2018-01-17T15:11:40Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![shwethag](https://avatars.discourse-cdn.com/v4/letter/s/e47774/32.png) [@shwethag](https://forum.inductiveautomation.com/u/shwethag)\
**Post date:** [January 17, 2018, 3:11pm UTC](https://forum.inductiveautomation.com/t/problem-reading-float-value-from-modbus-tcp/16621/1 "2018-01-17T15:11:40Z")

</div>

Hello:  
I’ve a Modbus TCP slave which communicates with Ignition SCADA. I am trying to read float values from holding register 10102. The value is read correctly on the gateway tags. I would like to read the float value in my designer project. So, I created a OPC tag with data type float and mapped it to HR10102. But I am receiving some integer value instead of float. Could you please let me know what could be the problem?

Thank you very much in advance,  
Shwetha.

---

<div class="post-metadata">

**Author:** ![Kyle\_Chase](https://avatars.discourse-cdn.com/v4/letter/k/9de0a6/32.png) [@Kyle\_Chase](https://forum.inductiveautomation.com/u/Kyle_Chase)\
**Post date:** [January 17, 2018, 3:52pm UTC](https://forum.inductiveautomation.com/t/problem-reading-float-value-from-modbus-tcp/16621/2 "2018-01-17T15:52:30Z")

</div>

Step 1. Read the manual. [https://docs.inductiveautomation.com:8443/display/DOC79/Modbus+Addressing](https://docs.inductiveautomation.com:8443/display/DOC79/Modbus+Addressing)

You need to have your address as HRF10102, and set the data type to float.

---

<div class="post-metadata">

**Author:** ![shwethag](https://avatars.discourse-cdn.com/v4/letter/s/e47774/32.png) [@shwethag](https://forum.inductiveautomation.com/u/shwethag)\
**Post date:** [January 17, 2018, 4:06pm UTC](https://forum.inductiveautomation.com/t/problem-reading-float-value-from-modbus-tcp/16621/3 "2018-01-17T16:06:44Z")

</div>

Thank you!. That solved the issue

---

<div class="post-metadata">

**Author:** ![Jamie\_Dukelow](https://avatars.discourse-cdn.com/v4/letter/j/e9a140/32.png) [@Jamie\_Dukelow](https://forum.inductiveautomation.com/u/Jamie_Dukelow)\
**Post date:** [November 2, 2022, 4:32pm UTC](https://forum.inductiveautomation.com/t/problem-reading-float-value-from-modbus-tcp/16621/4 "2022-11-02T16:32:38Z")

</div>

I just ran across this thread. I am having the exact same problem as shwethag, except I have used HRF and am still getting a value of zero in Ignition Designer. My exact address is 428893, and so I am using HRF28893. Any help would be appreciated.

---

<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:** [November 2, 2022, 4:51pm UTC](https://forum.inductiveautomation.com/t/problem-reading-float-value-from-modbus-tcp/16621/5 "2022-11-02T16:51:56Z")

</div>

Usually the problem is one of:

1. your address is wrong, often off by one
2. you need to enable the "Swap Words" setting
3. the value is actually 0

If you can use some 3rd party Modbus software like modscan or modpoll or whatever to see the "right" value then we can see which of those problems it is.

---

<div class="post-metadata">

**Author:** ![Jamie\_Dukelow](https://avatars.discourse-cdn.com/v4/letter/j/e9a140/32.png) [@Jamie\_Dukelow](https://forum.inductiveautomation.com/u/Jamie_Dukelow)\
**Post date:** [November 4, 2022, 4:15pm UTC](https://forum.inductiveautomation.com/t/problem-reading-float-value-from-modbus-tcp/16621/6 "2022-11-04T16:15:37Z")

</div>

Thank you Kevin--I discovered it was #2. as you suggested! Works fine now.
