# Ignition 7.0.5 (b4679) system.opc.readValue() problem

**URL:** <https://forum.inductiveautomation.com/t/ignition-7-0-5-b4679-system-opc-readvalue-problem/1650>\
**Category:** Ignition\
**Created:** [March 17, 2010, 3:42am UTC](https://forum.inductiveautomation.com/t/ignition-7-0-5-b4679-system-opc-readvalue-problem/1650 "2010-03-17T03:42:30Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![ISDProj](https://avatars.discourse-cdn.com/v4/letter/i/58956e/32.png) [@ISDProj](https://forum.inductiveautomation.com/u/ISDProj)\
**Post date:** [March 17, 2010, 3:42am UTC](https://forum.inductiveautomation.com/t/ignition-7-0-5-b4679-system-opc-readvalue-problem/1650/1 "2010-03-17T03:42:30Z")

</div>

I have come across an issue when trying to read tags using the:  
system.opc.readValue() function.

Once you have read a tag with this function it’s value ceases to be available to the SQLTags Browser until you restart the OPC modules on the gateway.

let me know if you want more info on this.

---

<div class="post-metadata">

**Author:** ![Carl.Gould](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/carl.gould/32/7262_2.png) [@Carl.Gould](https://forum.inductiveautomation.com/u/Carl.Gould)\
**Post date:** [March 17, 2010, 4:29pm UTC](https://forum.inductiveautomation.com/t/ignition-7-0-5-b4679-system-opc-readvalue-problem/1650/2 "2010-03-17T16:29:56Z")

</div>

What kind of device were you using?

---

<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:** [March 17, 2010, 4:48pm UTC](https://forum.inductiveautomation.com/t/ignition-7-0-5-b4679-system-opc-readvalue-problem/1650/3 "2010-03-17T16:48:00Z")

</div>

Also: is this a COM or UA OPC server you are talking about?

---

<div class="post-metadata">

**Author:** ![ISDProj](https://avatars.discourse-cdn.com/v4/letter/i/58956e/32.png) [@ISDProj](https://forum.inductiveautomation.com/u/ISDProj)\
**Post date:** [March 17, 2010, 11:15pm UTC](https://forum.inductiveautomation.com/t/ignition-7-0-5-b4679-system-opc-readvalue-problem/1650/4 "2010-03-17T23:15:54Z")

</div>

UA OPC. The default one created when Ignition is installed.

---

<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:** [March 18, 2010, 4:00pm UTC](https://forum.inductiveautomation.com/t/ignition-7-0-5-b4679-system-opc-readvalue-problem/1650/5 "2010-03-18T16:00:17Z")

</div>

What kind of device are you connected to? I cannot replicate this problem locally so any details that would differentiate between my setup and yours will be helpful at this point.

---

<div class="post-metadata">

**Author:** ![ISDProj](https://avatars.discourse-cdn.com/v4/letter/i/58956e/32.png) [@ISDProj](https://forum.inductiveautomation.com/u/ISDProj)\
**Post date:** [March 18, 2010, 10:39pm UTC](https://forum.inductiveautomation.com/t/ignition-7-0-5-b4679-system-opc-readvalue-problem/1650/6 "2010-03-18T22:39:14Z")

</div>

The PLC in question was a ContolLogix 1756-L55. (with a “beefy” memory upgrade)  
We had an array of 64 fairly complex UDT’s “mapped” through ignition (around 11,008 tags - thanks to the UDT having a couple of 82 character STRING elements + 8 others) at the time which may have contributed to the situation. We have since revised the way we deal with this and the problem seems to have been rectified.

Thanks to the system.opc.readValues() and writeValue() functions we now only monitor a couple of “hot” flags that indicate which elements in the array have been updated/read. The “Tag Changed” event is now used as a trigger to perform a “once-off” read of the affected UDT array element only then write a handshake back to indicate we have colected the data.

Is there any better way that we could have done this? - Bearing in mind that as we are part of the “I.S.” department we don’t get much say in what happens within the PLC code itself.

Peter
