# Reading Modbus real value from Modicon M340

**URL:** <https://forum.inductiveautomation.com/t/reading-modbus-real-value-from-modicon-m340/31827>\
**Category:** Ignition\
**Created:** [January 31, 2020, 5:31pm UTC](https://forum.inductiveautomation.com/t/reading-modbus-real-value-from-modicon-m340/31827 "2020-01-31T17:31:17Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![AliE](https://avatars.discourse-cdn.com/v4/letter/a/13edae/32.png) [@AliE](https://forum.inductiveautomation.com/u/AliE)\
**Post date:** [January 31, 2020, 5:31pm UTC](https://forum.inductiveautomation.com/t/reading-modbus-real-value-from-modicon-m340/31827/1 "2020-01-31T17:31:17Z")

</div>

Hi,

I’m having an issue reading real values form a Modicon M340 through Modbus. I read some of the existing posts, but the solutions did not work for me.

I set my modbus connection to zero-based. With this setting, I can read and write to an integer variable from the PLC at %MW1003 by using [Modus]HR1003.

When I try to read a real integer at %MW2628 by using [Modbus]HR2628, I get zero. I tried changing the data type from float to double, but still get 0.

---

<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:** [January 31, 2020, 5:49pm UTC](https://forum.inductiveautomation.com/t/reading-modbus-real-value-from-modicon-m340/31827/2 "2020-01-31T17:49:12Z")

</div>

Try `[Modbus]HRF2628` instead.

[https://docs.inductiveautomation.com/display/DOC80/Modbus+Addressing](https://docs.inductiveautomation.com/display/DOC80/Modbus+Addressing)

---

<div class="post-metadata">

**Author:** ![AliE](https://avatars.discourse-cdn.com/v4/letter/a/13edae/32.png) [@AliE](https://forum.inductiveautomation.com/u/AliE)\
**Post date:** [January 31, 2020, 6:30pm UTC](https://forum.inductiveautomation.com/t/reading-modbus-real-value-from-modicon-m340/31827/3 "2020-01-31T18:30:34Z")

</div>

Thank you for the quick response, but it is still reading 0.

 ![Capture](https://us1.discourse-cdn.com/inductiveautomation/original/2X/0/0e89815089eed3da37a3b16f0cc27b460f9af4f0.png)

---

<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:** [January 31, 2020, 7:26pm UTC](https://forum.inductiveautomation.com/t/reading-modbus-real-value-from-modicon-m340/31827/4 "2020-01-31T19:26:42Z")

</div>

Try the “Reverse Word Order” setting on the driver configuration.

---

<div class="post-metadata">

**Author:** ![AliE](https://avatars.discourse-cdn.com/v4/letter/a/13edae/32.png) [@AliE](https://forum.inductiveautomation.com/u/AliE)\
**Post date:** [January 31, 2020, 8:03pm UTC](https://forum.inductiveautomation.com/t/reading-modbus-real-value-from-modicon-m340/31827/5 "2020-01-31T20:03:22Z")

</div>

Thank you very much. That was my problem. I had played with the reverse word order option, but that was before using HRF instead of HR.

I have another question if you don’t mind. I create a new OPC tag and click on the pencil icon to select the OPC Server. If I select the “Ignition OPC UA Server” and hit commit, the server name is not populated in the tag property. My current workaround is to go to expand Ignition OPC UA server-Devices-[Modbus]-[Diagnostics] and select one of the tags. Then I go into the tag property and change the path.

What is the right way to create a new Modbus tag without creating addresses in the gateway device page?
