# Dynamic OPC item path

**URL:** <https://forum.inductiveautomation.com/t/dynamic-opc-item-path/4329>\
**Category:** Ignition\
**Created:** [April 20, 2012, 3:56pm UTC](https://forum.inductiveautomation.com/t/dynamic-opc-item-path/4329 "2012-04-20T15:56:30Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![fadihindi](https://avatars.discourse-cdn.com/v4/letter/f/34f0e0/32.png) [@fadihindi](https://forum.inductiveautomation.com/u/fadihindi)\
**Post date:** [April 20, 2012, 3:56pm UTC](https://forum.inductiveautomation.com/t/dynamic-opc-item-path/4329/1 "2012-04-20T15:56:30Z")

</div>

I would like to create a SQLTag that allows for a dynamic run-time modification of the OPC item path. For example, the item path references the OPC server and contains all of the information to access a PLC memory register, but the register number is specified in a numeric input component on a window. This would allow a user to view multiple raw PLC memory registers without having to add all of the potential individual tags to the database.

I realize there may be potential timing issues for writing data but my purposes would be for read only without archiving or alerting. I have viewed some posts regarding this topic previously but they appear to be from several years ago so I am curious if there is a current solution for this option.

---

<div class="post-metadata">

**Author:** ![diat150](https://avatars.discourse-cdn.com/v4/letter/d/a587f6/32.png) [@diat150](https://forum.inductiveautomation.com/u/diat150)\
**Post date:** [April 20, 2012, 4:22pm UTC](https://forum.inductiveautomation.com/t/dynamic-opc-item-path/4329/2 "2012-04-20T16:22:00Z")

</div>

couldnt you use system.opc.readValue

---

<div class="post-metadata">

**Author:** ![fadihindi](https://avatars.discourse-cdn.com/v4/letter/f/34f0e0/32.png) [@fadihindi](https://forum.inductiveautomation.com/u/fadihindi)\
**Post date:** [April 23, 2012, 6:12pm UTC](https://forum.inductiveautomation.com/t/dynamic-opc-item-path/4329/3 "2012-04-23T18:12:31Z")

</div>

Yes. Thank you for the tip.
