# Memory tag to OPC tag

**URL:** <https://forum.inductiveautomation.com/t/memory-tag-to-opc-tag/87541>\
**Category:** Ignition\
**Tags:** ignition81, perspective\
**Created:** [March 19, 2024, 10:45am UTC](https://forum.inductiveautomation.com/t/memory-tag-to-opc-tag/87541 "2024-03-19T10:45:58Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Michael\_Johannsen](https://avatars.discourse-cdn.com/v4/letter/m/3ab097/32.png) [@Michael\_Johannsen](https://forum.inductiveautomation.com/u/Michael_Johannsen)\
**Post date:** [March 19, 2024, 10:45am UTC](https://forum.inductiveautomation.com/t/memory-tag-to-opc-tag/87541/1 "2024-03-19T10:45:58Z")

</div>

Hi.

I have a memory tag that gets value from a SQL.  
I also have a OPC tag that are connect to a tag in a PLC.

It is necessary that the PLC knows what the memory tags value is.

But I don't know have to make these connection between thus to tag.

---

<div class="post-metadata">

**Author:** ![Hayden\_Watson](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/hayden_watson/32/48792_2.png) [@Hayden\_Watson](https://forum.inductiveautomation.com/u/Hayden_Watson)\
**Post date:** [March 19, 2024, 10:47am UTC](https://forum.inductiveautomation.com/t/memory-tag-to-opc-tag/87541/2 "2024-03-19T10:47:47Z")

</div>

You could add a value change script on the 'SQL' tag that writes the value to your OPC tag

---

<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:** [March 19, 2024, 11:22am UTC](https://forum.inductiveautomation.com/t/memory-tag-to-opc-tag/87541/3 "2024-03-19T11:22:57Z")

</div>

Do be sure to use `.writeAsync()`, not `.writeBlocking()`, in event scripts on tags.
