# Gateway tag change issue

**URL:** <https://forum.inductiveautomation.com/t/gateway-tag-change-issue/21697>\
**Category:** Ignition\
**Created:** [January 5, 2019, 12:01am UTC](https://forum.inductiveautomation.com/t/gateway-tag-change-issue/21697 "2019-01-05T00:01:29Z")\
**Posts on this page:** 1\
**Showing post:** 8

<div class="post-metadata">

**Author:** ![witman](https://avatars.discourse-cdn.com/v4/letter/w/d2c977/32.png) [@witman](https://forum.inductiveautomation.com/u/witman)\
**Post date:** [January 6, 2019, 10:54pm UTC](https://forum.inductiveautomation.com/t/gateway-tag-change-issue/21697/8 "2019-01-06T22:54:42Z")

</div>

To write each tag from only one direction:

1. PLC sets trigger tag
2. Script runs on trigger tag change, does stuff, and sets handshake tag
3. PLC clears trigger tag when it sees handshake tag
4. Script runs on trigger tag change and clears handshake tag  
This should make a race condition pretty unlikely,

---

_[View the full topic](https://forum.inductiveautomation.com/t/gateway-tag-change-issue/21697)._
