# Opc tag value:

**URL:** <https://forum.inductiveautomation.com/t/opc-tag-value/4189>\
**Category:** Ignition\
**Created:** [March 22, 2012, 7:01am UTC](https://forum.inductiveautomation.com/t/opc-tag-value/4189 "2012-03-22T07:01:53Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![Aliya](https://avatars.discourse-cdn.com/v4/letter/a/43a26b/32.png) [@Aliya](https://forum.inductiveautomation.com/u/Aliya)\
**Post date:** [March 22, 2012, 7:01am UTC](https://forum.inductiveautomation.com/t/opc-tag-value/4189/1 "2012-03-22T07:01:53Z")

</div>

After reading tag values in opc ua in ignition how to write these tag values in text file??? i need script for writing tag values in text file  
 ![:prayer:](https://us1.discourse-cdn.com/inductiveautomation/original/1X/e5a7e3b63facc151ea73e3b45db7bdb3d4bdc316.gif ":prayer:")

---

<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:** [March 22, 2012, 9:41am UTC](https://forum.inductiveautomation.com/t/opc-tag-value/4189/2 "2012-03-22T09:41:48Z")

</div>

How many tags are we looking at?

---

<div class="post-metadata">

**Author:** ![Aliya](https://avatars.discourse-cdn.com/v4/letter/a/43a26b/32.png) [@Aliya](https://forum.inductiveautomation.com/u/Aliya)\
**Post date:** [March 22, 2012, 11:35am UTC](https://forum.inductiveautomation.com/t/opc-tag-value/4189/3 "2012-03-22T11:35:03Z")

</div>

nearly 1000 tags

---

<div class="post-metadata">

**Author:** ![Aliya](https://avatars.discourse-cdn.com/v4/letter/a/43a26b/32.png) [@Aliya](https://forum.inductiveautomation.com/u/Aliya)\
**Post date:** [March 22, 2012, 11:37am UTC](https://forum.inductiveautomation.com/t/opc-tag-value/4189/4 "2012-03-22T11:37:58Z")

</div>

can u plz provide me with an example for system.opc. get tag values…

coz m able to read only one tag value bt nt multiple ☹

---

<div class="post-metadata">

**Author:** ![Aliya](https://avatars.discourse-cdn.com/v4/letter/a/43a26b/32.png) [@Aliya](https://forum.inductiveautomation.com/u/Aliya)\
**Post date:** [March 22, 2012, 11:43am UTC](https://forum.inductiveautomation.com/t/opc-tag-value/4189/5 "2012-03-22T11:43:33Z")

</div>

sorry it was system.tag.get tag values… i need an example for this

---

<div class="post-metadata">

**Author:** ![Travis.Cox](https://avatars.discourse-cdn.com/v4/letter/t/b9bd4f/32.png) [@Travis.Cox](https://forum.inductiveautomation.com/u/Travis.Cox)\
**Post date:** [March 22, 2012, 3:01pm UTC](https://forum.inductiveautomation.com/t/opc-tag-value/4189/6 "2012-03-22T15:01:31Z")

</div>

Look at your original post.

---

<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:** [March 22, 2012, 3:09pm UTC](https://forum.inductiveautomation.com/t/opc-tag-value/4189/7 "2012-03-22T15:09:58Z")

</div>

Rather cumbersome for 1000 tags, isn’t it?

---

<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:** [March 22, 2012, 3:12pm UTC](https://forum.inductiveautomation.com/t/opc-tag-value/4189/8 "2012-03-22T15:12:45Z")

</div>

Sorry, let me go a bit further. Is there a way to iterate through the SQL Tags? Talking about an Internal Provider.

---

<div class="post-metadata">

**Author:** ![Travis.Cox](https://avatars.discourse-cdn.com/v4/letter/t/b9bd4f/32.png) [@Travis.Cox](https://forum.inductiveautomation.com/u/Travis.Cox)\
**Post date:** [March 22, 2012, 3:35pm UTC](https://forum.inductiveautomation.com/t/opc-tag-value/4189/9 "2012-03-22T15:35:47Z")

</div>

There is a module KyleChase wrote that iterates through SQLTags. Here is a link to the module:

[http://inductiveautomation.com/forum/viewtopic.php?f=88&t=7815](http://inductiveautomation.com/forum/viewtopic.php?f=88&t=7815)

It is called system.tag.getChildren(“path/to/folder”)

---

<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:** [March 22, 2012, 3:41pm UTC](https://forum.inductiveautomation.com/t/opc-tag-value/4189/10 "2012-03-22T15:41:16Z")

</div>

Yeah! I knew there was something knocking around in my head!
