# String Data type in the Modbus Driver

**URL:** <https://forum.inductiveautomation.com/t/string-data-type-in-the-modbus-driver/2009>\
**Category:** Ignition\
**Created:** [July 7, 2010, 7:02am UTC](https://forum.inductiveautomation.com/t/string-data-type-in-the-modbus-driver/2009 "2010-07-07T07:02:40Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![ttuttle387](https://avatars.discourse-cdn.com/v4/letter/t/59ef9b/32.png) [@ttuttle387](https://forum.inductiveautomation.com/u/ttuttle387)\
**Post date:** [July 7, 2010, 7:02am UTC](https://forum.inductiveautomation.com/t/string-data-type-in-the-modbus-driver/2009/1 "2010-07-07T07:02:40Z")

</div>

It would be really nice to have a String Data type in the Modbus driver. Its a real pain to get ASCII data from a Modbus Register with out the String Data type.

Thanks,

Tyler

---

<div class="post-metadata">

**Author:** ![thechtman](https://avatars.discourse-cdn.com/v4/letter/t/e56c9b/32.png) [@thechtman](https://forum.inductiveautomation.com/u/thechtman)\
**Post date:** [July 16, 2010, 12:12am UTC](https://forum.inductiveautomation.com/t/string-data-type-in-the-modbus-driver/2009/2 "2010-07-16T00:12:18Z")

</div>

The next development release contains support for reading and writing strings.

---

<div class="post-metadata">

**Author:** ![ttuttle387](https://avatars.discourse-cdn.com/v4/letter/t/59ef9b/32.png) [@ttuttle387](https://forum.inductiveautomation.com/u/ttuttle387)\
**Post date:** [July 16, 2010, 4:40am UTC](https://forum.inductiveautomation.com/t/string-data-type-in-the-modbus-driver/2009/3 "2010-07-16T04:40:22Z")

</div>

Thanks,

I think it will be nice feature.

Keep up the good work. ![:thumb_left:](https://us1.discourse-cdn.com/inductiveautomation/original/1X/e26afb081ddde6df016df6ee49159cf56aaca688.gif ":thumb\_left:")

Tyler

---

<div class="post-metadata">

**Author:** ![thechtman](https://avatars.discourse-cdn.com/v4/letter/t/e56c9b/32.png) [@thechtman](https://forum.inductiveautomation.com/u/thechtman)\
**Post date:** [July 21, 2010, 12:31am UTC](https://forum.inductiveautomation.com/t/string-data-type-in-the-modbus-driver/2009/4 "2010-07-21T00:31:30Z")

</div>

Release 7.1.4 now on the download page of our website has Modbus string support, expanded support for more data encoding types like 32 BCD values and word swapping options.

---

<div class="post-metadata">

**Author:** ![Henry](https://avatars.discourse-cdn.com/v4/letter/h/df705f/32.png) [@Henry](https://forum.inductiveautomation.com/u/Henry)\
**Post date:** [July 21, 2010, 9:20pm UTC](https://forum.inductiveautomation.com/t/string-data-type-in-the-modbus-driver/2009/5 "2010-07-21T21:20:16Z")

</div>

Thanks for the BCD 32, I will use that function.

---

<div class="post-metadata">

**Author:** ![JordanCClark](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/jordancclark/32/83362_2.png) [@JordanCClark](https://forum.inductiveautomation.com/u/JordanCClark)\
**Post date:** [August 17, 2010, 7:32pm UTC](https://forum.inductiveautomation.com/t/string-data-type-in-the-modbus-driver/2009/6 "2010-08-17T19:32:44Z")

</div>

How is the string support supposed to work? Is there supposed to be an ASCII datatype where you set up your registers?

EDIT: Oops! meant addresses… Too many terms running in my head…

---

<div class="post-metadata">

**Author:** ![JordanCClark](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/jordancclark/32/83362_2.png) [@JordanCClark](https://forum.inductiveautomation.com/u/JordanCClark)\
**Post date:** [August 18, 2010, 5:17pm UTC](https://forum.inductiveautomation.com/t/string-data-type-in-the-modbus-driver/2009/7 "2010-08-18T17:17:17Z")

</div>

Sorry, gotta bump this-- it could save a ton of code… well, for me, anyway… ![:mrgreen:](https://us1.discourse-cdn.com/inductiveautomation/original/1X/d23659b203d2d24d394be983a52adb2fa6fe23d4.gif "Mr. Green")

---

<div class="post-metadata">

**Author:** ![thechtman](https://avatars.discourse-cdn.com/v4/letter/t/e56c9b/32.png) [@thechtman](https://forum.inductiveautomation.com/u/thechtman)\
**Post date:** [August 18, 2010, 6:15pm UTC](https://forum.inductiveautomation.com/t/string-data-type-in-the-modbus-driver/2009/8 "2010-08-18T18:15:34Z")

</div>

Ignition version 7.1.5 has string support in the Modbus driver.

Please note, strings cannot be entered into the address mapping and have to be entered as a SQLTag.

The following describes what to enter into the OPC Path for the SQLTag:

HRS read or write consecutive Holding Registers as a string value. Note that  
there are 2 characters for each word and the order of which character  
comes first is controlled by the Reverse String Byte Order device setting  
as described above. Because two characters are stored in a word, the string  
length must be an even number of characters.  
HRS FORMAT: HRS:

Example:  
[DL240]HRS1024:20 Read 20 character string value starting at Holding Register 1024.

See the manual for more information.

---

<div class="post-metadata">

**Author:** ![JordanCClark](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/jordancclark/32/83362_2.png) [@JordanCClark](https://forum.inductiveautomation.com/u/JordanCClark)\
**Post date:** [August 18, 2010, 6:44pm UTC](https://forum.inductiveautomation.com/t/string-data-type-in-the-modbus-driver/2009/9 "2010-08-18T18:44:37Z")

</div>

😊

I apologize for being an idiot. What really stinks is that I read it a couple of days ago and still didn’t register it in my brain.

Think it’s time for a vacation. ![:thumb_right:](https://us1.discourse-cdn.com/inductiveautomation/original/1X/2026e28c0c425034352c1b75807edf956adc75f4.gif ":thumb\_right:")

Thanks for the assist!
