# Passing values from one tag to another

**URL:** <https://forum.inductiveautomation.com/t/passing-values-from-one-tag-to-another/40370>\
**Category:** Ignition\
**Created:** [November 5, 2020, 8:38pm UTC](https://forum.inductiveautomation.com/t/passing-values-from-one-tag-to-another/40370 "2020-11-05T20:38:00Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![iot](https://avatars.discourse-cdn.com/v4/letter/i/5f8ce5/32.png) [@iot](https://forum.inductiveautomation.com/u/iot)\
**Post date:** [November 5, 2020, 8:38pm UTC](https://forum.inductiveautomation.com/t/passing-values-from-one-tag-to-another/40370/1 "2020-11-05T20:38:00Z")

</div>

Hi All,

New to Ignition and need some help.

I have 3 devices connected to my gateway. I am trying to figure out how I can pass values from one tag to another. For example, I want to take the temperature value from my Micrologix 1400 PLC and pass the value to a tag I have on my Microcontroller.

I know software like KepServer has a tag linking function. Ie to make one tag equal the other, but i’m hoping to just use Ignition.

Any help would be appreciated. Thanks!

---

<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:** [November 5, 2020, 8:53pm UTC](https://forum.inductiveautomation.com/t/passing-values-from-one-tag-to-another/40370/2 "2020-11-05T20:53:32Z")

</div>

You could put a tag change script on the first tag that writes its value to the second tag.

---

<div class="post-metadata">

**Author:** ![nminchin](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/nminchin/32/6911_2.png) [@nminchin](https://forum.inductiveautomation.com/u/nminchin)\
**Post date:** [November 5, 2020, 8:56pm UTC](https://forum.inductiveautomation.com/t/passing-values-from-one-tag-to-another/40370/3 "2020-11-05T20:56:02Z")

</div>

You could use a tag change script (or a gateway tag change script if you have lots in a folder structure) to write the value into the other corresponding tag. Shy of that, I'm not sure if there's another way.  
You could create a library script function to handle it with some smarts to write to the right corresponding tag, assuming you have a logical tag structure for the two sets of tags from each device

> [@Kevin.Herron](#):
>
> You could put a tag change script

Beat me to it!
