# How to read String value from MITSUBISHI tag/register

**URL:** <https://forum.inductiveautomation.com/t/how-to-read-string-value-from-mitsubishi-tag-register/88202>\
**Category:** Ignition\
**Tags:** perspective\
**Created:** [April 2, 2024, 9:08am UTC](https://forum.inductiveautomation.com/t/how-to-read-string-value-from-mitsubishi-tag-register/88202 "2024-04-02T09:08:47Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![kavya\_shree](https://avatars.discourse-cdn.com/v4/letter/k/b4bc9f/32.png) [@kavya\_shree](https://forum.inductiveautomation.com/u/kavya_shree)\
**Post date:** [April 2, 2024, 9:08am UTC](https://forum.inductiveautomation.com/t/how-to-read-string-value-from-mitsubishi-tag-register/88202/1 "2024-04-02T09:08:47Z")

</div>

Hi Team,

I have connected Mitsubishi driver with one of the machine.  
I am loading CSV file in Ignition and I am able read values.  
But one tag I am not able read correct tag value which is configured in PLC.  
All integer value I am getting but string not able to get.  
Please find below screenshots by PLC side.

 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/d/5/d537d452871fc00870ddabe8e6b97fa9537dca35.jpeg)  
 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/2/0/20912d7cfa74d08095f123e56e1a6f666020ad75.png)  
 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/e/1/e1d5d5feaac3dc2d1c792785eaeb78f559731f8e.png)  
 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/a/3/a319765144a8d5295b553af6f2e524747a546b0c.png)  
In Ignition Tag section , tag value is coming numerical. How to set this to string.  
 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/7/a/7aba27d96c7022a65ea56d86d410df60b64fd8f1.png)

Thank you

---

<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 2, 2024, 10:52am UTC](https://forum.inductiveautomation.com/t/how-to-read-string-value-from-mitsubishi-tag-register/88202/2 "2024-04-02T10:52:21Z")

</div>

According to the manual:

> **[Mitsubishi TCP Driver | Ignition User Manual](https://www.docs.inductiveautomation.com/docs/8.1/ignition-modules/opc-ua/opc-ua-drivers/mitsubishi-tcp-driver#addressing-in-the-designer)**
>
> ​

Specifying `D6850` yields the signed 16-bit value, which your tag is configured to then store as a string. You need `D<string7>6850` to pick up the null-terminated string starting at offset 6850.

---

<div class="post-metadata">

**Author:** ![kavya\_shree](https://avatars.discourse-cdn.com/v4/letter/k/b4bc9f/32.png) [@kavya\_shree](https://forum.inductiveautomation.com/u/kavya_shree)\
**Post date:** [April 2, 2024, 11:22am UTC](https://forum.inductiveautomation.com/t/how-to-read-string-value-from-mitsubishi-tag-register/88202/3 "2024-04-02T11:22:51Z")

</div>

Sorry, do we need to do this settings in Ignition tag properties or also in PLC side.

---

<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 2, 2024, 11:25am UTC](https://forum.inductiveautomation.com/t/how-to-read-string-value-from-mitsubishi-tag-register/88202/4 "2024-04-02T11:25:57Z")

</div>

On both sides. The protocol doesn't **have** any data types other than the defaults, so both sides have to **agree** to treat those registers as character data. The PLC appears to be treating three consecutive registers as six characters (but not null terminated), so that part is good.

Any other multi-word use of registers similarly has to **agree** on both sides.

---

<div class="post-metadata">

**Author:** ![kavya\_shree](https://avatars.discourse-cdn.com/v4/letter/k/b4bc9f/32.png) [@kavya\_shree](https://forum.inductiveautomation.com/u/kavya_shree)\
**Post date:** [April 2, 2024, 11:32am UTC](https://forum.inductiveautomation.com/t/how-to-read-string-value-from-mitsubishi-tag-register/88202/5 "2024-04-02T11:32:22Z")

</div>

Thank you, its working. I got the solution.
