# Siemens Tags Addressing Help

**URL:** <https://forum.inductiveautomation.com/t/siemens-tags-addressing-help/84107>\
**Category:** General Discussion\
**Created:** [January 11, 2024, 12:46pm UTC](https://forum.inductiveautomation.com/t/siemens-tags-addressing-help/84107 "2024-01-11T12:46:27Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![d.vasilev](https://avatars.discourse-cdn.com/v4/letter/d/df705f/32.png) [@d.vasilev](https://forum.inductiveautomation.com/u/d.vasilev)\
**Post date:** [January 11, 2024, 12:46pm UTC](https://forum.inductiveautomation.com/t/siemens-tags-addressing-help/84107/1 "2024-01-11T12:46:27Z")

</div>

I have 5 machines with S7-300 PLC.  
I do not have problems with memory bits, word, double word, REAL,etc, addresing, but with the strings I cannot find the way.  
For example, the tag is DB31.DBB0 , string type, array of 40 characters.  
I tried [device\_name]DB31,STRING0;  
[device\_name]DB31,ISTRING0;  
[device\_name]DB31,STRING0.40  
It does not work.  
Any help?

---

<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:** [January 11, 2024, 1:20pm UTC](https://forum.inductiveautomation.com/t/siemens-tags-addressing-help/84107/2 "2024-01-11T13:20:09Z")

</div>

Does your memory area for the strings have the two leading bytes for max and current string length?

---

<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 11, 2024, 1:22pm UTC](https://forum.inductiveautomation.com/t/siemens-tags-addressing-help/84107/3 "2024-01-11T13:22:55Z")

</div>

> [@d.vasilev](#):
>
> [device\_name]DB31,STRING0.40

This one has the right syntax, so I’d at least hope the error or quality is different, which would lead to Phil’s question about the strings being in “S7 format”.

---

<div class="post-metadata">

**Author:** ![d.vasilev](https://avatars.discourse-cdn.com/v4/letter/d/df705f/32.png) [@d.vasilev](https://forum.inductiveautomation.com/u/d.vasilev)\
**Post date:** [January 11, 2024, 1:30pm UTC](https://forum.inductiveautomation.com/t/siemens-tags-addressing-help/84107/4 "2024-01-11T13:30:25Z")

</div>

This is part of the tags list I got from the manufacturer, but I have also the PLC program, where I saw that the string length is 40 characters:

![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/a/1/a10ef469079423607a79893be04ed1248473c2fb.png)

![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/2/a/2a633e8d641a28e0ee72e7e0a11bfc8fe793b2bc.png)

---

<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:** [January 11, 2024, 1:34pm UTC](https://forum.inductiveautomation.com/t/siemens-tags-addressing-help/84107/5 "2024-01-11T13:34:03Z")

</div>

That's not an S7 string, that's simply an array of characters. So no, it doesn't have the leading two length bytes that Ignition expects.

---

<div class="post-metadata">

**Author:** ![d.vasilev](https://avatars.discourse-cdn.com/v4/letter/d/df705f/32.png) [@d.vasilev](https://forum.inductiveautomation.com/u/d.vasilev)\
**Post date:** [January 11, 2024, 7:00pm UTC](https://forum.inductiveautomation.com/t/siemens-tags-addressing-help/84107/6 "2024-01-11T19:00:58Z")

</div>

Thank you, @pturmel and @Kevin.Herron  
I used Kepserver with the same syntax. It works.
