# Unable to read String tag for Modbus TCP device

**URL:** <https://forum.inductiveautomation.com/t/unable-to-read-string-tag-for-modbus-tcp-device/58800>\
**Category:** Ignition\
**Tags:** ignition81\
**Created:** [April 25, 2022, 7:41am UTC](https://forum.inductiveautomation.com/t/unable-to-read-string-tag-for-modbus-tcp-device/58800 "2022-04-25T07:41:37Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sushant\_TTL\_Chavan](https://avatars.discourse-cdn.com/v4/letter/s/13edae/32.png) [@Sushant\_TTL\_Chavan](https://forum.inductiveautomation.com/u/Sushant_TTL_Chavan)\
**Post date:** [April 25, 2022, 7:41am UTC](https://forum.inductiveautomation.com/t/unable-to-read-string-tag-for-modbus-tcp-device/58800/1 "2022-04-25T07:41:37Z")

</div>

I have connected one machine in Ignition using Modbus TCP protocol. I have received string tag address details from vendor as 407011. I have connected same machine in Kepware and checked the tag data and found there is data in string tag(“Machine Name”). But when I checked in Ignition I am unable to read the string data.  
Could you please tell me is there anything wrong in tag address mapping in Ignition.

I have mapped the tags address in Ignition gateway-\> Config → Device Connections -\>Under Devices(Addresses)

The setting for string tags are(Length 20L)

Prefix = DeviceName ;Start=1; End=1; Step=Unchecked; UnitID = 0; Modbus Type =Holding Register (Int16bit) ; Modbus Address=7011

---

<div class="post-metadata">

**Author:** ![pturmel](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/pturmel/32/3295_2.png) [@pturmel](https://forum.inductiveautomation.com/u/pturmel)\
**Post date:** [April 25, 2022, 1:20pm UTC](https://forum.inductiveautomation.com/t/unable-to-read-string-tag-for-modbus-tcp-device/58800/2 "2022-04-25T13:20:20Z")

</div>

You are specifying integer reading of the one address.

Consider not using the address mapping tool (it is optional). Simply create an OPC tag and manually enter the following as the OPC Item Path:

```auto
[someDeviceName]HRS7011:20

```

Variations to try:

```auto
[someDeviceName]1.HRS7011:20
[someDeviceName]HRS7010:20
[someDeviceName]1.HRS7010:20

```

You may also need to adjust the device’s advanced settings for one-based versus zero-based addressing, and possibly also the string byte order setting.

You can see why I made the above suggestions here:

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

---

<div class="post-metadata">

**Author:** ![Sushant\_TTL\_Chavan](https://avatars.discourse-cdn.com/v4/letter/s/13edae/32.png) [@Sushant\_TTL\_Chavan](https://forum.inductiveautomation.com/u/Sushant_TTL_Chavan)\
**Post date:** [April 26, 2022, 5:02am UTC](https://forum.inductiveautomation.com/t/unable-to-read-string-tag-for-modbus-tcp-device/58800/3 "2022-04-26T05:02:06Z")

</div>

Hi Pturmel,

Thanks for replying. I tried with the following combinations but still not able to read the values.

ns=1;s=[J03\_MYE\_MASS\_303A\_001]HRS7011:20  
ns=1;s=[J03\_MYE\_MASS\_303A\_001]1.HRS7011:20  
ns=1;s=[J03\_MYE\_MASS\_303A\_001]HRS7010:20  
ns=1;s=[J03\_MYE\_MASS\_303A\_001]1.HRS7010:20

Browsed Tag for Reference : ns=1;s=[J03\_MYE\_MASS\_303A\_001]Devicename1

---

<div class="post-metadata">

**Author:** ![pturmel](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/pturmel/32/3295_2.png) [@pturmel](https://forum.inductiveautomation.com/u/pturmel)\
**Post date:** [April 26, 2022, 12:15pm UTC](https://forum.inductiveautomation.com/t/unable-to-read-string-tag-for-modbus-tcp-device/58800/4 "2022-04-26T12:15:22Z")

</div>

I recommend capturing what Kepware is doing so we can compare. If that’s too much private info, consider having support look over your shoulder.

Or, perhaps, share your vendor documentation so we can decipher it directly.

---

<div class="post-metadata">

**Author:** ![Sushant\_TTL\_Chavan](https://avatars.discourse-cdn.com/v4/letter/s/13edae/32.png) [@Sushant\_TTL\_Chavan](https://forum.inductiveautomation.com/u/Sushant_TTL_Chavan)\
**Post date:** [April 26, 2022, 1:51pm UTC](https://forum.inductiveautomation.com/t/unable-to-read-string-tag-for-modbus-tcp-device/58800/5 "2022-04-26T13:51:01Z")

</div>

Thank you Pturmel,

Your solution worked.  
Address combination  
ns=1;s=[J03\_MYE\_MASS\_303A\_001]HRS7011:20

Initially the reason for not getting the data was communication issue. I checked using direct connection to the machine with address combination given by you and I was able to see the data.

Thanks Pturmel
