# Siemens S7 1500 Tag Mapping to an array Of Strings

**URL:** <https://forum.inductiveautomation.com/t/siemens-s7-1500-tag-mapping-to-an-array-of-strings/95687>\
**Category:** Ignition\
**Tags:** siemens, ignition81\
**Created:** [September 8, 2024, 2:10pm UTC](https://forum.inductiveautomation.com/t/siemens-s7-1500-tag-mapping-to-an-array-of-strings/95687 "2024-09-08T14:10:10Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![christopher\_wray](https://avatars.discourse-cdn.com/v4/letter/c/54ee81/32.png) [@christopher\_wray](https://forum.inductiveautomation.com/u/christopher_wray)\
**Post date:** [September 8, 2024, 2:10pm UTC](https://forum.inductiveautomation.com/t/siemens-s7-1500-tag-mapping-to-an-array-of-strings/95687/1 "2024-09-08T14:10:10Z")

</div>

Hi  
Can anyone give me some advice , I'm currently mapping some tags to a Siemens S7 1500 PLC, The DB Area in question is DB2012 , The tag I created is a data type array of String, and I want to map that to the Siemens String array Tags, i.e. 0-15 Tags within there own address. I.m trying to work out the Item Path, do I have to individually map each string element address of that array ?

First should the tag I created be a string tag instead and then I have to map each Individual address ? which kind of defeats the whole about of the data type array of strings, or is that a quirk when mapping to a Siemens PLC ?

I have tried this as this is the first element but it doesn't work [PLC]DB2012,STRING8 , the actual siemens address for the first 2 elements of the string array are 8 and 20 then 32 etc etc, I'm just trying to get the syntax

---

<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:** [September 8, 2024, 3:02pm UTC](https://forum.inductiveautomation.com/t/siemens-s7-1500-tag-mapping-to-an-array-of-strings/95687/2 "2024-09-08T15:02:41Z")

</div>

IA's native driver doesn't have any syntax to address an array of strings. You'll need individual string tags. Also be aware that the Siemens string format that IA expects uses two header bytes, one set to the max length of the string, and the other the current length. These bytes are not optional. For your case, you will need OPC Item Paths like so:

```python
[PLC]DB2012,STRING8.10
[PLC]DB2012,STRING20.10
[PLC]DB2012,STRING32.10

```

Note that the max string length is ten when the increment between start addresses is twelve.

> **[Siemens | Ignition User Manual](https://www.docs.inductiveautomation.com/docs/8.1/ignition-modules/opc-ua/opc-ua-drivers/siemens#address-syntax)**
>
> The Siemens drivers in Ignition support basic connections to S7 devices. Ignition connects to these PLCs via TCP/IP using the S7 protocol. Similar to Modbus and some Allen Bradley connections, the Siemens S7 devices do not support tag browsing. You...

---

<div class="post-metadata">

**Author:** ![christopher\_wray](https://avatars.discourse-cdn.com/v4/letter/c/54ee81/32.png) [@christopher\_wray](https://forum.inductiveautomation.com/u/christopher_wray)\
**Post date:** [September 8, 2024, 6:11pm UTC](https://forum.inductiveautomation.com/t/siemens-s7-1500-tag-mapping-to-an-array-of-strings/95687/3 "2024-09-08T18:11:20Z")

</div>

Hi

Thank you for your help, worked fine 🙂
