# Cannot read some tags inside Rockwell AOI

**URL:** <https://forum.inductiveautomation.com/t/cannot-read-some-tags-inside-rockwell-aoi/38393>\
**Category:** Ignition Early Access\
**Created:** [September 4, 2020, 11:09am UTC](https://forum.inductiveautomation.com/t/cannot-read-some-tags-inside-rockwell-aoi/38393 "2020-09-04T11:09:49Z")\
**Posts on this page:** 20\
**Page:** 4

<div class="post-metadata">

**Author:** ![pturmel](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/pturmel/32/3295_2.png) [@pturmel](https://forum.inductiveautomation.com/u/pturmel)\
**Post date:** [November 4, 2022, 12:10pm UTC](https://forum.inductiveautomation.com/t/cannot-read-some-tags-inside-rockwell-aoi/38393/64 "2022-11-04T12:10:38Z")

</div>

Pre-alpha testing is proceeding with my lab gear. When I have no apparent bugs in the major code paths, I'll turn the alpha loose. Soon.

---

<div class="post-metadata">

**Author:** ![pturmel](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/pturmel/32/3295_2.png) [@pturmel](https://forum.inductiveautomation.com/u/pturmel)\
**Post date:** [January 3, 2023, 10:26pm UTC](https://forum.inductiveautomation.com/t/cannot-read-some-tags-inside-rockwell-aoi/38393/65 "2023-01-03T22:26:29Z")

</div>

The "fix" is now real, and public, as a beta. Please give it a shot:

> [@Automation Professionals' EtherNet/IP Communication Suite V2](https://forum.inductiveautomation.com/t/automation-professionals-ethernet-ip-communication-suite-v2/68190):
>
> Automation Professionals is pleased to announce its latest EtherNet/IP Communications Suite driver module, a major upgrade to its EtherNet/IP Class1 Communications module, as a Public Beta. As of April 15, 2023, this is now a Production Release. The primary new feature is its new Generic EtherNet/IP Client Driver, a drop-in replacement for IA's Logix V21+ driver and its Omron NJ/NX driver. It does work with older Logix processors, and also works with Rockwell's MicroLogix 8xx family (ethernet…

---

<div class="post-metadata">

**Author:** ![quartzFarm](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/quartzfarm/32/42037_2.png) [@quartzFarm](https://forum.inductiveautomation.com/u/quartzFarm)\
**Post date:** [January 4, 2023, 6:33pm UTC](https://forum.inductiveautomation.com/t/cannot-read-some-tags-inside-rockwell-aoi/38393/66 "2023-01-04T18:33:33Z")

</div>

I am testing this out currently. Initial tests look great. Thank you so much!

---

<div class="post-metadata">

**Author:** ![apimente](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/apimente/32/4030_2.png) [@apimente](https://forum.inductiveautomation.com/u/apimente)\
**Post date:** [March 27, 2023, 1:00pm UTC](https://forum.inductiveautomation.com/t/cannot-read-some-tags-inside-rockwell-aoi/38393/67 "2023-03-27T13:00:59Z")

</div>

Hi guys! This something related only with IA logix driver or it's something that will happen with several OPC servers?, kepserver for example.

Regards!

---

<div class="post-metadata">

**Author:** ![pturmel](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/pturmel/32/3295_2.png) [@pturmel](https://forum.inductiveautomation.com/u/pturmel)\
**Post date:** [March 27, 2023, 1:40pm UTC](https://forum.inductiveautomation.com/t/cannot-read-some-tags-inside-rockwell-aoi/38393/68 "2023-03-27T13:40:45Z")

</div>

All users of the [Rockwell CIP services](https://literature.rockwellautomation.com/idc/groups/literature/documents/pm/1756-pm020_-en-p.pdf) for tag access will suffer if _ **any** _ element of a data type or AOI is set to "External Access: None".

Additionally, users of the Rockwell CIP services for tag access that _ **strictly follow their published instructions** _ (the linked data access manual) will be unable to optimize AOI data types and I/O module data types.

Rockwell uses undocumented services with its RSLinx drivers that I do not think any other company is using. But I haven't looked closely at what Kepware does. But even without those, there are opportunities for higher performance.

IA has a policy against using reverse engineering in drivers, where I do not. Ergo, my module's speed advantages due to looking under Rockwell's hood. So to speak.

---

<div class="post-metadata">

**Author:** ![Alexander\_Filippov1](https://avatars.discourse-cdn.com/v4/letter/a/ec9cab/32.png) [@Alexander\_Filippov1](https://forum.inductiveautomation.com/u/Alexander_Filippov1)\
**Post date:** [February 5, 2025, 9:53pm UTC](https://forum.inductiveautomation.com/t/cannot-read-some-tags-inside-rockwell-aoi/38393/69 "2025-02-05T21:53:10Z")

</div>

Good day, Phil,  
Sorry for resurrecting a very old forum thread 🙂  
By any chance, do you know the Rockwell Document describing the security vulnerability of AOI's that cause a slower communication? Was it mentioned in some release note? So far, I cannot find any direct mentioning of this problem on the Rockwell site.  
We are in the process of creating a standard for PLC and SCADA development and a more efficient addressing to UDT's should be definitely described in it. A reference to the source document would cut all of the arguments.  
I would really appreciate any tips.  
Thank you.

---

<div class="post-metadata">

**Author:** ![pturmel](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/pturmel/32/3295_2.png) [@pturmel](https://forum.inductiveautomation.com/u/pturmel)\
**Post date:** [February 5, 2025, 10:00pm UTC](https://forum.inductiveautomation.com/t/cannot-read-some-tags-inside-rockwell-aoi/38393/70 "2025-02-05T22:00:41Z")

</div>

> [@Alexander\_Filippov1](#):
>
> security vulnerability of AOI's

There is no such vulnerability that I'm aware of. Physical memory access APIs in Logix firmwares prior to v21 are implicitly insecure, but were never documented at all. Some vendors, including IA, used them for performance in their drivers. And had their legs clipped at their knees when v21 was released.

As for Rockwell not documenting the nuances of access to their AOI data types and various other object APIs, that is purely commercial exclusion. A legitimate position to take to limit exposure to technical support calls. ("You're doing what? That's not supported." _\<Click\>_.)

---

<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:** [February 18, 2025, 4:29am UTC](https://forum.inductiveautomation.com/t/cannot-read-some-tags-inside-rockwell-aoi/38393/71 "2025-02-18T04:29:57Z")

</div>

> [@pturmel](#):
>
> Note that Ignition never writes into the `xyz_fbk` data, and the PLC never writes to `xyz_cmd`. This is crucial to avoid race conditions. And it fits well with E/IP I/O configurations.

Hey Phil, I'm a bit embarrassed to ask, but how in Perspective do you recommend issuing commands from SCADA to `xyz_cmd` registers, and having them reset themselves from SCADA (without PLC writing to them) so as to avoid race conditions? This still confuses me.. would you suggest tag value change scripts to do this resetting?

---

<div class="post-metadata">

**Author:** ![michael.flagler](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/michael.flagler/32/26272_2.png) [@michael.flagler](https://forum.inductiveautomation.com/u/michael.flagler)\
**Post date:** [February 18, 2025, 5:42am UTC](https://forum.inductiveautomation.com/t/cannot-read-some-tags-inside-rockwell-aoi/38393/72 "2025-02-18T05:42:03Z")

</div>

For all my commands from the HMI write a 1 to a tag, then let the PLC reset it back to 0 once that command is "processed". Think like a reset button, or start and stop commands. I avoid using momentary buttons for 2 reasons. I've seen the unlatch/write to zero fail many times resulting in strange behaviors, and secondly it allows for slow periodic tasks to process commands reliably. So even if you have a 5 second periodic task, setting a value to 1 then the PLC resetting it is guaranteed to work compared to having an operator spamming the mouse button to get something to work.

---

<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:** [February 18, 2025, 5:48am UTC](https://forum.inductiveautomation.com/t/cannot-read-some-tags-inside-rockwell-aoi/38393/73 "2025-02-18T05:48:20Z")

</div>

Momentary buttons in Perspective are unreliable so I'd never use them in Perspective (same reason I never use jog buttons _ **especially** _ in Perspective). However Phil recommends _against_ writing to the same tags from PLC and SCADA since it can and _does_ cause a race condition which I see regularly. I often see issues with subscribed tags that set command tags in SCADA and reset them in the PLC automatically where the Ignition tag remains on but the PLC tag has turned off, regardless of settings like "read after write" and "optimistic writes" (I've tried all sorts of different combinations). The way to fix these (or rather work around the issue) is to use a polled rate, but obviously that's far less efficient on comms.

I was referring to Phil's post here:

> [@pturmel](#):
>
> - `xyz_cmd` This is the collection of setpoints and command bits and handshake short integers. Subscribed as needed (slow/leased is fine), but usually mapped to a PLC input buffer with E/IP. If so, can contain momentary buttons driven from my custom component.
> - `xyz_cfg` This is the collection of configuration items for the AOI, like process/alarm limits, tuning constants, operating modes, etc. Subscribed slow in a leased scan class, so the traffic is only present when the user has the corresponding configuration UI open.
> 
> Note that Ignition never writes into the `xyz_fbk` data, and the PLC never writes to `xyz_cmd`. This is crucial to avoid race conditions. And it fits well with E/IP I/O configurations.

The other issue with SCADA and PLC writing to the same tags is that sometimes the SCADA commands can be missed if it's written at the right time in the scan cycle. SCADA can set the tag and then the PLC will reset it immediately without actioning anything if it receives the value at the right (or wrong) time. You can work around this by storing the last value, but that's probably wasteful and annoying logic (I'm not a PLC guy)

---

<div class="post-metadata">

**Author:** ![rbabcock](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/rbabcock/32/13425_2.png) [@rbabcock](https://forum.inductiveautomation.com/u/rbabcock)\
**Post date:** [February 18, 2025, 12:25pm UTC](https://forum.inductiveautomation.com/t/cannot-read-some-tags-inside-rockwell-aoi/38393/74 "2025-02-18T12:25:37Z")

</div>

> [@nminchin](#):
>
> SCADA can set the tag and then the PLC will reset it immediately without actioning anything

Generally, you'd have the bit unlatch only _after_ the desired action is performed. that way, if the cmd bit goes high during that rung's scan, it will persist until the next scan.

---

<div class="post-metadata">

**Author:** ![michael.flagler](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/michael.flagler/32/26272_2.png) [@michael.flagler](https://forum.inductiveautomation.com/u/michael.flagler)\
**Post date:** [February 18, 2025, 12:57pm UTC](https://forum.inductiveautomation.com/t/cannot-read-some-tags-inside-rockwell-aoi/38393/75 "2025-02-18T12:57:16Z")

</div>

I always buffer my HMI commands at the beginning of my AOI (literally do a COP of my entire .Cmd tag to another identical tag, then only use that tag for logic and reset any bits processed as soon as they're processed (in both tags - buffered and unbufferred even though I really only need to do the unbufferred).

---

<div class="post-metadata">

**Author:** ![pturmel](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/pturmel/32/3295_2.png) [@pturmel](https://forum.inductiveautomation.com/u/pturmel)\
**Post date:** [February 18, 2025, 1:19pm UTC](https://forum.inductiveautomation.com/t/cannot-read-some-tags-inside-rockwell-aoi/38393/76 "2025-02-18T13:19:54Z")

</div>

There are two approaches I recommend:

The simpler approach is to use short integers instead of booleans to fire events, like a reset pulse. Simply increment the tag, rolling over, and perhaps skipping zero. The PLC would notice the change and fire the boolean for you, for one scan (or whatever is appropriate).

The more involved approach is to use a timer event that looks for handshake bits in `xyz_fbk` indicating that the boolean in `xyz_cmd` was seen, to perform the Ignition-side reset. Just like ladder logic--scanning repeatedly for actions to take. The same timer event can monitor many signals, and can also be the handler for signals in the other direction.

(If you are using my CIP I/O Button in Vision, you need no other logic for momentary buttons, as long as the traffic is CIP Class1.)

---

<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:** [February 18, 2025, 2:09pm UTC](https://forum.inductiveautomation.com/t/cannot-read-some-tags-inside-rockwell-aoi/38393/77 "2025-02-18T14:09:43Z")

</div>

First option sounds good! I'll look at using this from now on, thanks for the advice

---

<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:** [February 18, 2025, 9:16pm UTC](https://forum.inductiveautomation.com/t/cannot-read-some-tags-inside-rockwell-aoi/38393/78 "2025-02-18T21:16:15Z")

</div>

Also, was I on the right track re the race condition if both scada and plc write to the same tag in a scada set plc reset setup?

---

<div class="post-metadata">

**Author:** ![pturmel](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/pturmel/32/3295_2.png) [@pturmel](https://forum.inductiveautomation.com/u/pturmel)\
**Post date:** [February 18, 2025, 9:18pm UTC](https://forum.inductiveautomation.com/t/cannot-read-some-tags-inside-rockwell-aoi/38393/79 "2025-02-18T21:18:38Z")

</div>

That's one. The more common is a hiccup reading back while the PLC proceeds to set another signal, not realizing SCADA hasn't caught up.

---

<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:** [February 18, 2025, 9:24pm UTC](https://forum.inductiveautomation.com/t/cannot-read-some-tags-inside-rockwell-aoi/38393/80 "2025-02-18T21:24:27Z")

</div>

Is this still in the same scada set / plc reset scenario, or would that be for other scenarios where the plc is writing other values, maybe set points

---

<div class="post-metadata">

**Author:** ![jlandwerlen](https://avatars.discourse-cdn.com/v4/letter/j/bc8723/32.png) [@jlandwerlen](https://forum.inductiveautomation.com/u/jlandwerlen)\
**Post date:** [February 18, 2025, 9:32pm UTC](https://forum.inductiveautomation.com/t/cannot-read-some-tags-inside-rockwell-aoi/38393/81 "2025-02-18T21:32:11Z")

</div>

Here's an example, from PlantPax, that I use often. I will set `OCmd_Start` from the HMI and the PLC will immediately reset. Is it being suggested that the HMI could get stuck high? I ask because I have done this for a long time and have never seen it cause any issues. I have seen "stuck bits" using momentary commands, but not set/reset.

 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/4/0/40ccc2b0fcbf575fc97384f120207d163b4cad33.png)

---

<div class="post-metadata">

**Author:** ![michael.flagler](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/michael.flagler/32/26272_2.png) [@michael.flagler](https://forum.inductiveautomation.com/u/michael.flagler)\
**Post date:** [February 18, 2025, 9:50pm UTC](https://forum.inductiveautomation.com/t/cannot-read-some-tags-inside-rockwell-aoi/38393/82 "2025-02-18T21:50:25Z")

</div>

Same here, I set the bit, the PLC resets it. Never had an issue with doing commands like this, and never had a bit get stuck.

---

<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:** [February 18, 2025, 11:43pm UTC](https://forum.inductiveautomation.com/t/cannot-read-some-tags-inside-rockwell-aoi/38393/83 "2025-02-18T23:43:39Z")

</div>

It's not the PLC tag that gets stuck, it's the SCADA tag that gets stuck occasionally for me. I'd like to understand it more technically (@pturmel @Kevin.Herron?), but it seems like the subscription gets stuck. SCADA writes to the tag setting it True, the PLC immediately resets it to False, but SCADA remains True indefinitely. Presumably it would get back in sync if the PLC tag changed from False to True, but I've had operators complain that command buttons don't work before, and it turned out to be this issue

[Previous page](https://forum.inductiveautomation.com/t/cannot-read-some-tags-inside-rockwell-aoi/38393.md?page=3)

[Next page](https://forum.inductiveautomation.com/t/cannot-read-some-tags-inside-rockwell-aoi/38393.md?page=5)
