# Pass value from one tag to another

**URL:** <https://forum.inductiveautomation.com/t/pass-value-from-one-tag-to-another/11666>\
**Category:** General Discussion\
**Created:** [May 13, 2016, 10:20pm UTC](https://forum.inductiveautomation.com/t/pass-value-from-one-tag-to-another/11666 "2016-05-13T22:20:16Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![ryanastiefes](https://avatars.discourse-cdn.com/v4/letter/r/47e85d/32.png) [@ryanastiefes](https://forum.inductiveautomation.com/u/ryanastiefes)\
**Post date:** [May 13, 2016, 10:20pm UTC](https://forum.inductiveautomation.com/t/pass-value-from-one-tag-to-another/11666/1 "2016-05-13T22:20:16Z")

</div>

How would I pass a value from one tag to another?

I have a time structure that updates every 12 hours, and I would like to update the RTC in my PLC’s with the Hour and Minute but cannot figure out how to pass the updated Hour and Minute to my PLC tags.

---

<div class="post-metadata">

**Author:** ![jose.ramirez](https://avatars.discourse-cdn.com/v4/letter/j/7feea3/32.png) [@jose.ramirez](https://forum.inductiveautomation.com/u/jose.ramirez)\
**Post date:** [May 27, 2016, 8:25pm UTC](https://forum.inductiveautomation.com/t/pass-value-from-one-tag-to-another/11666/2 "2016-05-27T20:25:16Z")

</div>

If I understand correctly you want to copy the value of one opc tag into another opc tag.

You can do that using transaction groups.

See bellow

[attachment=0]transactiongroupsample.JPG[/attachment]

---

<div class="post-metadata">

**Author:** ![ryanastiefes](https://avatars.discourse-cdn.com/v4/letter/r/47e85d/32.png) [@ryanastiefes](https://forum.inductiveautomation.com/u/ryanastiefes)\
**Post date:** [June 2, 2016, 2:15pm UTC](https://forum.inductiveautomation.com/t/pass-value-from-one-tag-to-another/11666/3 "2016-06-02T14:15:03Z")

</div>

That’s what i was looking for. Thank you much

---

<div class="post-metadata">

**Author:** ![greg.simpson](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/greg.simpson/32/3135_2.png) [@greg.simpson](https://forum.inductiveautomation.com/u/greg.simpson)\
**Post date:** [June 7, 2016, 9:25pm UTC](https://forum.inductiveautomation.com/t/pass-value-from-one-tag-to-another/11666/4 "2016-06-07T21:25:47Z")

</div>

You can also use a tag event script to write the value of one tag to another in scripting.

---

<div class="post-metadata">

**Author:** ![mwaynesmith](https://avatars.discourse-cdn.com/v4/letter/m/eb8c5e/32.png) [@mwaynesmith](https://forum.inductiveautomation.com/u/mwaynesmith)\
**Post date:** [February 23, 2017, 9:02pm UTC](https://forum.inductiveautomation.com/t/pass-value-from-one-tag-to-another/11666/5 "2017-02-23T21:02:24Z")

</div>

Any updates to this post? I, too, have a need to copy the value of a tag to other tags throughout my project. I want to have a static tag that can be copied to the writeable tag of a tcp device; basically a trigger to fire a bar code scanner.

---

<div class="post-metadata">

**Author:** ![AlThePal](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/althepal/32/3603_2.png) [@AlThePal](https://forum.inductiveautomation.com/u/AlThePal)\
**Post date:** [February 27, 2017, 1:41pm UTC](https://forum.inductiveautomation.com/t/pass-value-from-one-tag-to-another/11666/6 "2017-02-27T13:41:30Z")

</div>

How do you want to trigger your scanner? For example do you want it to happen in response to something else or when you press a button?

---

<div class="post-metadata">

**Author:** ![mwaynesmith](https://avatars.discourse-cdn.com/v4/letter/m/eb8c5e/32.png) [@mwaynesmith](https://forum.inductiveautomation.com/u/mwaynesmith)\
**Post date:** [February 27, 2017, 4:22pm UTC](https://forum.inductiveautomation.com/t/pass-value-from-one-tag-to-another/11666/7 "2017-02-27T16:22:42Z")

</div>

The PLC will tell us when the part is in place on the workcell after it has been positioned and locked in place, so we will fire the scanner trigger from a tag event on the PLC. We will actually have 10 workcells doing basically the same process.

---

<div class="post-metadata">

**Author:** ![AlThePal](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/althepal/32/3603_2.png) [@AlThePal](https://forum.inductiveautomation.com/u/AlThePal)\
**Post date:** [February 27, 2017, 8:46pm UTC](https://forum.inductiveautomation.com/t/pass-value-from-one-tag-to-another/11666/8 "2017-02-27T20:46:01Z")

</div>

In that case I think Greg’s idea is the simplest and most direct - put a tag event script on the incoming tag from the PLC and write whatever value you want to the tag controlling the scanner. This will then work without any intervention from you and can be expanded up to as many PLCs and scanners as you want.
