# Copy Gateway Performance tags to PLC every second

**URL:** <https://forum.inductiveautomation.com/t/copy-gateway-performance-tags-to-plc-every-second/17367>\
**Category:** Ignition\
**Created:** [March 14, 2018, 7:22pm UTC](https://forum.inductiveautomation.com/t/copy-gateway-performance-tags-to-plc-every-second/17367 "2018-03-14T19:22:39Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![brian.kehn](https://avatars.discourse-cdn.com/v4/letter/b/bbe5ce/32.png) [@brian.kehn](https://forum.inductiveautomation.com/u/brian.kehn)\
**Post date:** [March 14, 2018, 7:22pm UTC](https://forum.inductiveautomation.com/t/copy-gateway-performance-tags-to-plc-every-second/17367/1 "2018-03-14T19:22:39Z")

</div>

Hi IA. What is the best way to copy “disk utilization” or other Gateway Performance tags to OPC tags? The only way I know of is with global [shared] script and “system.tag.write()”, somehow calling the script every second.  
I am using 7.9.5  
a 64 bit system  
jre 1.8.0\_161  
Thoughts?

---

<div class="post-metadata">

**Author:** ![cmason](https://avatars.discourse-cdn.com/v4/letter/c/9e8a1a/32.png) [@cmason](https://forum.inductiveautomation.com/u/cmason)\
**Post date:** [March 14, 2018, 7:33pm UTC](https://forum.inductiveautomation.com/t/copy-gateway-performance-tags-to-plc-every-second/17367/2 "2018-03-14T19:33:48Z")

</div>

First post here so keen to be corrected by someone else if I’m off the mark, but I was looking at this yesterday. I’d imagine the "Gateway Event Scripts’ under the project scope, under a timer section would be a good way of making this happen

 ![](https://us1.discourse-cdn.com/inductiveautomation/original/2X/9/98e920cb82c15b89df074397883a0a20758e71ef.PNG)

---

<div class="post-metadata">

**Author:** ![KathyApplebaum](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/kathyapplebaum/32/7261_2.png) [@KathyApplebaum](https://forum.inductiveautomation.com/u/KathyApplebaum)\
**Post date:** [March 14, 2018, 8:37pm UTC](https://forum.inductiveautomation.com/t/copy-gateway-performance-tags-to-plc-every-second/17367/3 "2018-03-14T20:37:09Z")

</div>

Why do you need to copy them to OPC tags? If you’re trying to alarm or save history off them, you can do that right from the system tags.

---

<div class="post-metadata">

**Author:** ![brian.kehn](https://avatars.discourse-cdn.com/v4/letter/b/bbe5ce/32.png) [@brian.kehn](https://forum.inductiveautomation.com/u/brian.kehn)\
**Post date:** [March 14, 2018, 10:24pm UTC](https://forum.inductiveautomation.com/t/copy-gateway-performance-tags-to-plc-every-second/17367/4 "2018-03-14T22:24:39Z")

</div>

Thanks cmason. That’s what I ended up doing, and it works well.

---

<div class="post-metadata">

**Author:** ![brian.kehn](https://avatars.discourse-cdn.com/v4/letter/b/bbe5ce/32.png) [@brian.kehn](https://forum.inductiveautomation.com/u/brian.kehn)\
**Post date:** [March 14, 2018, 10:28pm UTC](https://forum.inductiveautomation.com/t/copy-gateway-performance-tags-to-plc-every-second/17367/5 "2018-03-14T22:28:37Z")

</div>

Kathy, you’re right that we could alarm right from the system tags, but we are managing all faults in the PLC for convenience (vision faults, servo faults, robot faults, and a few hmi faults). Thanks!

---

<div class="post-metadata">

**Author:** ![Claus\_Nielsen](https://avatars.discourse-cdn.com/v4/letter/c/77aa72/32.png) [@Claus\_Nielsen](https://forum.inductiveautomation.com/u/Claus_Nielsen)\
**Post date:** [March 15, 2018, 9:56am UTC](https://forum.inductiveautomation.com/t/copy-gateway-performance-tags-to-plc-every-second/17367/6 "2018-03-15T09:56:42Z")

</div>

Expression tags can do this aswell with “Write value back to OPC item” enabled. The timer would be managed using a scanclass then.
