# PLC writes

**URL:** <https://forum.inductiveautomation.com/t/plc-writes/4713>\
**Category:** Ignition\
**Created:** [June 27, 2012, 6:32pm UTC](https://forum.inductiveautomation.com/t/plc-writes/4713 "2012-06-27T18:32:15Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![AJBerera](https://avatars.discourse-cdn.com/v4/letter/a/9fc29f/32.png) [@AJBerera](https://forum.inductiveautomation.com/u/AJBerera)\
**Post date:** [June 27, 2012, 6:32pm UTC](https://forum.inductiveautomation.com/t/plc-writes/4713/1 "2012-06-27T18:32:15Z")

</div>

Do I need to use transaction groups to do this or is it possible for me to set this up in the tag browser so I can push OPC tag data into the PLC tag directly?

---

<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:** [June 27, 2012, 6:34pm UTC](https://forum.inductiveautomation.com/t/plc-writes/4713/2 "2012-06-27T18:34:08Z")

</div>

You can do this from transaction groups, scripting, binding, or directly in the SQLTags browser.

---

<div class="post-metadata">

**Author:** ![AJBerera](https://avatars.discourse-cdn.com/v4/letter/a/9fc29f/32.png) [@AJBerera](https://forum.inductiveautomation.com/u/AJBerera)\
**Post date:** [August 15, 2012, 4:01pm UTC](https://forum.inductiveautomation.com/t/plc-writes/4713/3 "2012-08-15T16:01:07Z")

</div>

value2 = event.source.parent.getComponent(‘Numeric Text Field 1’).floatValue  
system.tag.writeToTag(‘PEwrite/write2’, value2\*1000)

the tag write 2 is an OPC tag in a UDT called PEwrite.  
When I run this script, the tag write happens and I notice the new value.  
After half a second, the value reverts back to the old value.

In my PLC, it never changes the value.

---

<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:** [August 15, 2012, 6:37pm UTC](https://forum.inductiveautomation.com/t/plc-writes/4713/4 "2012-08-15T18:37:15Z")

</div>

Do you get any errors? Are you sure the PLC is not resetting the value? You may have to call our tech support on this one.

---

<div class="post-metadata">

**Author:** ![AJBerera](https://avatars.discourse-cdn.com/v4/letter/a/9fc29f/32.png) [@AJBerera](https://forum.inductiveautomation.com/u/AJBerera)\
**Post date:** [August 16, 2012, 4:42pm UTC](https://forum.inductiveautomation.com/t/plc-writes/4713/5 "2012-08-16T16:42:55Z")

</div>

PLC had a rung that was writing this value.  
I must have overlooked it, Thanks
