# Device Load Factor

**URL:** <https://forum.inductiveautomation.com/t/device-load-factor/15781>\
**Category:** Ignition\
**Created:** [October 26, 2017, 1:49pm UTC](https://forum.inductiveautomation.com/t/device-load-factor/15781 "2017-10-26T13:49:27Z")\
**Posts on this page:** 20\
**Page:** 3

<div class="post-metadata">

**Author:** ![bmusson](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/bmusson/32/87530_2.png) [@bmusson](https://forum.inductiveautomation.com/u/bmusson)\
**Post date:** [March 15, 2021, 3:33pm UTC](https://forum.inductiveautomation.com/t/device-load-factor/15781/41 "2021-03-15T15:33:23Z")

</div>

Just my two cents:

1. Do you have control over the PLC code?
2. Are you using controllers that natively speak Ethernet/IP?
3. Is speed/reliability important?

If the answer to all these questions is “Yes”, then you should be using Phil’s Class1 driver.  
Granted, it does take a bit of extra work (you can’t simply drag and drop tags into Ignition like you’re used to). But the benefits massively outweigh the PLC-side effort. If you’ve never seen 10ms HMI to PLC RPIs then you’re missing out.

That being said, the driver still benefits from segmented UDT/AOI’s (dedicated status/command UDT’s make copying in/out of the IO buffers so much less tedious).

---

<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:** [March 15, 2021, 3:52pm UTC](https://forum.inductiveautomation.com/t/device-load-factor/15781/42 "2021-03-15T15:52:55Z")

</div>

I noticed performance on a PV+ was poor using AOIs. So that may mean their own stuff is effected as well. A PV+ isn’t known to be a speed demon, but I noticed a huge difference between AOIs vs UDTs.

---

<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:** [March 15, 2021, 4:08pm UTC](https://forum.inductiveautomation.com/t/device-load-factor/15781/43 "2021-03-15T16:08:35Z")

</div>

> [@lrose](#):
>
> meh, It’s the inability to make online-changes that deter me more than anything, that’s for AOI’s in general.

This is the main programming reason that I've come to prefer Beckhoff (can download UDT and AOI changes online) to Allen-Bradley--though that wouldn't hold true for ladder logic where the Logix editor excels. We're using mainly structured text in TwinCAT 3.1 (Beckhoff).

---

<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:** [March 15, 2021, 4:33pm UTC](https://forum.inductiveautomation.com/t/device-load-factor/15781/44 "2021-03-15T16:33:51Z")

</div>

If you need to make constant changes in AOIs then in my opinion you aren’t using them for their intended purpose.

---

<div class="post-metadata">

**Author:** ![lrose](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/lrose/32/62724_2.png) [@lrose](https://forum.inductiveautomation.com/u/lrose)\
**Post date:** [March 15, 2021, 4:47pm UTC](https://forum.inductiveautomation.com/t/device-load-factor/15781/45 "2021-03-15T16:47:05Z")

</div>

> [@jlandwerlen](#):
>
> you aren’t using them for their intended purpose

I agree, but there is sometimes the need to add/modify features. Most of that work can be accomplished offline, but at some point you will need to download to the processor. That becomes cumbersome in a 24/7 production environment.

---

<div class="post-metadata">

**Author:** ![PreLC](https://avatars.discourse-cdn.com/v4/letter/p/ac8455/32.png) [@PreLC](https://forum.inductiveautomation.com/u/PreLC)\
**Post date:** [June 26, 2021, 11:28pm UTC](https://forum.inductiveautomation.com/t/device-load-factor/15781/46 "2021-06-26T23:28:14Z")

</div>

System over time slice makes every connection that is already established to transact data faster. This definitely helps in data collection, but at the expense of increasing scan times for PLCs.

On alternative is to increase the number of connections to the PLCs. This will start parallel data streams, hence splitting the load. For example, I had 176% usage at 100ms scan rates with 2 connections for an L71 processor. I went online with the PLCs using the Studio5k Task Monitor and found out that I was only using about 130 out of 512 total possible connections to my PLC+network card. I opened 10 more connections, going to 75% total load factor, and much faster scan times on other tags too.

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:** [June 27, 2021, 3:56am UTC](https://forum.inductiveautomation.com/t/device-load-factor/15781/47 "2021-06-27T03:56:18Z")

</div>

> [@PreLC](#):
>
> I opened 10 more connections

This is most helpful when there is more network latency than PLC CPU comms load. If there is very little network lag, extra connections have diminishing returns. But yes, don't skimp on connections.

---

<div class="post-metadata">

**Author:** ![michael.edmonson](https://avatars.discourse-cdn.com/v4/letter/m/e9bcb4/32.png) [@michael.edmonson](https://forum.inductiveautomation.com/u/michael.edmonson)\
**Post date:** [April 14, 2022, 7:36pm UTC](https://forum.inductiveautomation.com/t/device-load-factor/15781/48 "2022-04-14T19:36:28Z")

</div>

This worked like a charm! Thanks Kevin.

---

<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:** [August 19, 2022, 6:42am UTC](https://forum.inductiveautomation.com/t/device-load-factor/15781/49 "2022-08-19T06:42:56Z")

</div>

> [@bschroeder](#):
>
> One one specific system that has 150k tags plus we went from 90-103% load factor down to 10%

I just tested this myself as I was curious, and found the following:  
Reading 10,0070 tags from an AB 5069-L320ER/A PLC, FW 32.14  
Using AOI tags: 1533% load factor  
Using UDT tags: 35% load factor

I should mention that it wasn't really a great test... I set Tag Group rate to 50ms and the PLC guy didn't want to write logic in the PLC to change the tag values, so I had valueChange scripts running to change the values from Ignition....... Maybe I'll just write the logic myself and test it properly

---

<div class="post-metadata">

**Author:** ![tashby](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/tashby/32/67562_2.png) [@tashby](https://forum.inductiveautomation.com/u/tashby)\
**Post date:** [August 19, 2022, 7:55pm UTC](https://forum.inductiveautomation.com/t/device-load-factor/15781/50 "2022-08-19T19:55:27Z")

</div>

I’ve bench tested before with a program I wrote using direct AOI’s. I created UDT’s with the same tag structure and same tag count just to compare the metrics, and it is as others have reported. About a factor of 10 in communication overhead.

also, we have recently, updated a production system which involved replacing the AB L61 processors with L71’s. Both on our PLC and a Vendor’s PLC. Our PLC is talking to significantly fewer tags but directly to AOI’s (with 4 times the concurrent connections), while the vendor PLC is talking to UDT’s and more tags with fewer concurrent connections. This just re-affirms what we’ve witnessed. We’ve started overhauling our AOI’s to implement UDT’s instead of the base structure because of this and so far it has helped (even with as painful as it’s been).

 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/2/f/2fe07ccf36b0dfac8b447db50103bb907ae9bf9d.png)

---

<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:** [August 19, 2022, 8:01pm UTC](https://forum.inductiveautomation.com/t/device-load-factor/15781/51 "2022-08-19T20:01:23Z")

</div>

It's really a shame that Rockwell chooses not to document AOI access. 😢

From 1756-pm020:

> The Predefined, Add-On-Defined, and Module-Defined types, and Booleans within these structures, are difficult to deal with for various reasons and are beyond the scope of this publication. For alternatives for working with Predefined, Add-On-Defined, and Module-Defined types, and Booleans within these structures see the following topics in this chapter.

and

> To improve tag access performance and to simplify the task of accessing structured tags through a network, create UDTs for the data that needs to be accessed through the network with members of the types listed following only, and access the UDTs as a whole.  
> • Atomic tags  
> • Arrays of atomic tags  
> • Other UDTs of atomic tags  
> • Arrays of UDTs of atomic tags

---

<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:** [August 25, 2022, 10:15pm UTC](https://forum.inductiveautomation.com/t/device-load-factor/15781/52 "2022-08-25T22:15:49Z")

</div>

I performed a better test and got rid of the silly Ignition tag change scripts.

PLC is now changing many of the digital tags in the UDT/AOI every 500ms.  
These are the results:

 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/7/0/706171a6bdad4947031dd65df658315e5998e3c5.png)

I missed the monitoredItemCount on the UDTs but it's the same as the AOIs

~~Load factor~~ Overload factor for the AOI tags is 65%  
~~Load factor~~ Overload factor for the UDT tags is 0%

That's kind of a crazy difference!

---

<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:** [August 25, 2022, 10:56pm UTC](https://forum.inductiveautomation.com/t/device-load-factor/15781/53 "2022-08-25T22:56:03Z")

</div>

Yeah, and look at the difference in RequestCount - that’s what happens when we have to request each tag vs just requesting the structure.

---

<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:** [August 25, 2022, 11:08pm UTC](https://forum.inductiveautomation.com/t/device-load-factor/15781/54 "2022-08-25T23:08:37Z")

</div>

Just for understanding, if i’m monitoring 10,229 AOI tags, why is the request count 444?

---

<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:** [August 25, 2022, 11:08pm UTC](https://forum.inductiveautomation.com/t/device-load-factor/15781/55 "2022-08-25T23:08:54Z")

</div>

Multiple tags per request.

---

<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:** [August 25, 2022, 11:09pm UTC](https://forum.inductiveautomation.com/t/device-load-factor/15781/56 "2022-08-25T23:09:46Z")

</div>

Der 😅 Thanks!

---

<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:** [August 25, 2022, 11:11pm UTC](https://forum.inductiveautomation.com/t/device-load-factor/15781/57 "2022-08-25T23:11:22Z")

</div>

And can you just describe the difference that caused the AOI craziness between firmware \<21.x and \>= 21.x that made them inefficient to read in the latter versions?

---

<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:** [August 25, 2022, 11:14pm UTC](https://forum.inductiveautomation.com/t/device-load-factor/15781/58 "2022-08-25T23:14:54Z")

</div>

It’s not just AOI craziness, the v21+ firmware basically introduced an entirely different “API” for reading tags. The old driver was basically doing direct memory reads. The new one reads based on an instance ID and follows the rules laid out in the manual.

I’m not super familiar with the data format we got back from the direct memory reads, if there’s different rules for AOIs vs UDTs, or any other gotchas. It’s a bunch of legacy code that just works, ish, and nobody touches it. The developer who wrote it is long gone and it was all reverse engineered.

---

<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:** [August 25, 2022, 11:18pm UTC](https://forum.inductiveautomation.com/t/device-load-factor/15781/59 "2022-08-25T23:18:17Z")

</div>

> [@Kevin.Herron](#):
>
> The developer who wrote it is long gone and it was all reverse engineered

Good ol' Rockwell trying to strong arm people into using their bogus SCADA and HMI software 🙄

Good to know though! cheers again

---

<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:** [August 25, 2022, 11:20pm UTC](https://forum.inductiveautomation.com/t/device-load-factor/15781/60 "2022-08-25T23:20:03Z")

</div>

Yeah, for better or worse, at least what we have now is built against official documentation.

I did some reverse engineering for the Siemens driver. Never again, not going to be responsible for that kind of non-sense. I’ve instituted a “no reverse engineering” policy for drivers. The protocol is documented or we don’t do it.

[Previous page](https://forum.inductiveautomation.com/t/device-load-factor/15781.md?page=2)

[Next page](https://forum.inductiveautomation.com/t/device-load-factor/15781.md?page=4)
