# Dynamic OPC server

**URL:** <https://forum.inductiveautomation.com/t/dynamic-opc-server/14293>\
**Category:** Ignition\
**Tags:** ignition79\
**Created:** [May 15, 2017, 12:21pm UTC](https://forum.inductiveautomation.com/t/dynamic-opc-server/14293 "2017-05-15T12:21:59Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![edo](https://avatars.discourse-cdn.com/v4/letter/e/e5b9ba/32.png) [@edo](https://forum.inductiveautomation.com/u/edo)\
**Post date:** [May 15, 2017, 12:21pm UTC](https://forum.inductiveautomation.com/t/dynamic-opc-server/14293/1 "2017-05-15T12:21:59Z")

</div>

Wich mode can I use to set dynamically the OPC Server?  
I want create a Data type where I assigned OPC Server in dynamic mode.

It it possible?

 ![](https://us1.discourse-cdn.com/inductiveautomation/original/2X/1/13df91d20aacad8744b2074411a2cc2610f93c7c.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:** [May 15, 2017, 1:31pm UTC](https://forum.inductiveautomation.com/t/dynamic-opc-server/14293/2 "2017-05-15T13:31:52Z")

</div>

You can set the OPC Server and OPC Path at runtime using a script that calls [system.tag.editTag()](https://docs.inductiveautomation.com/display/DOC79/system.tag.editTag). See the very first code example on that page.

---

<div class="post-metadata">

**Author:** ![edo](https://avatars.discourse-cdn.com/v4/letter/e/e5b9ba/32.png) [@edo](https://forum.inductiveautomation.com/u/edo)\
**Post date:** [May 15, 2017, 1:59pm UTC](https://forum.inductiveautomation.com/t/dynamic-opc-server/14293/3 "2017-05-15T13:59:52Z")

</div>

Ah, ok, now I see this option but where can I write this script in var Data Type?  
I don’t much experience with data type.  
Thank you so much

---

<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:** [May 15, 2017, 3:13pm UTC](https://forum.inductiveautomation.com/t/dynamic-opc-server/14293/4 "2017-05-15T15:13:14Z")

</div>

Oh, you want to use a UDT parameter to set the server? You’ll have to just play with it to see if you can get the curly-brace syntax to work.
