# Siemens - Writing to Strings

**URL:** <https://forum.inductiveautomation.com/t/siemens-writing-to-strings/40600>\
**Category:** Ignition\
**Tags:** ignition80\
**Created:** [November 12, 2020, 8:24pm UTC](https://forum.inductiveautomation.com/t/siemens-writing-to-strings/40600 "2020-11-12T20:24:21Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![kaushik.shah](https://avatars.discourse-cdn.com/v4/letter/k/34f0e0/32.png) [@kaushik.shah](https://forum.inductiveautomation.com/u/kaushik.shah)\
**Post date:** [November 12, 2020, 8:24pm UTC](https://forum.inductiveautomation.com/t/siemens-writing-to-strings/40600/1 "2020-11-12T20:24:21Z")

</div>

Hello Everyone,  
I am trying to write value to Siemens PLC and getting character error on comma separator after DBXXX.

I am using,  
Ignition - 8.0.10  
PLC - S300

I have tried updating values in tag and that works fine but when I write with system function as below it gives me an error.

 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/7/b/7babaa6fe5ef7ecd5045d8b4720b57cd1d359bc0.png)

 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/0/b/0bdd80bc6683b1b8170391a08a94aba9b24967d8.png)

Does anyone have any idea on this ?

Thanks in advance

---

<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:** [November 12, 2020, 8:38pm UTC](https://forum.inductiveautomation.com/t/siemens-writing-to-strings/40600/2 "2020-11-12T20:38:51Z")

</div>

You’re passing OPC Item Path syntax into a `system.tag` call instead of `system.opc`.

---

<div class="post-metadata">

**Author:** ![kaushik.shah](https://avatars.discourse-cdn.com/v4/letter/k/34f0e0/32.png) [@kaushik.shah](https://forum.inductiveautomation.com/u/kaushik.shah)\
**Post date:** [November 17, 2020, 12:57pm UTC](https://forum.inductiveautomation.com/t/siemens-writing-to-strings/40600/3 "2020-11-17T12:57:21Z")

</div>

Ohh Shoot !!

Wow, that’s way stupid. I tried with opc system function and I was getting errors on String. That’s when I realized that when using opc function to write values of string, you need to define length of the string in tag.

thank Kevin
