# When exactly do leased tags of a UDT become active?

**URL:** <https://forum.inductiveautomation.com/t/when-exactly-do-leased-tags-of-a-udt-become-active/45196>\
**Category:** Ignition\
**Tags:** ignition79, ignition80\
**Created:** [April 2, 2021, 4:09am UTC](https://forum.inductiveautomation.com/t/when-exactly-do-leased-tags-of-a-udt-become-active/45196 "2021-04-02T04:09:33Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![ddonco](https://avatars.discourse-cdn.com/v4/letter/d/3ab097/32.png) [@ddonco](https://forum.inductiveautomation.com/u/ddonco)\
**Post date:** [April 2, 2021, 4:09am UTC](https://forum.inductiveautomation.com/t/when-exactly-do-leased-tags-of-a-udt-become-active/45196/1 "2021-04-02T04:09:33Z")

</div>

Getting into the specifics of leased tags on this one. I have a UDT with tags in driven scan classes and others (SQL query tags) in leased scan classes. A couple of the driven scan class tags are used to show equipment state in templates on an overview window. Our templates use indirect tag bindings and/or expressions to access these status tags within the UDT instances. The question is, does opening the overview window, and therefore accessing these equipment state tags, trigger the gateway to execute the leased tags of the UDT instances?

We’re trying to hunt down reasons for slow window loading, and I’m trying to eliminate these leased SQL query tags as a source of the problem.

---

<div class="post-metadata">

**Author:** ![ggross](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/ggross/32/12668_2.png) [@ggross](https://forum.inductiveautomation.com/u/ggross)\
**Post date:** [April 2, 2021, 3:38pm UTC](https://forum.inductiveautomation.com/t/when-exactly-do-leased-tags-of-a-udt-become-active/45196/2 "2021-04-02T15:38:46Z")

</div>

Leased scan classes change to the leased/driven rate when a subscription is allocated to any Vision or Perspective window/template/view in 8.x versions of Ignition. This includes opening a the window/template/view in the Designer.

In 7.x versions the same applies, plus any subscriptions via the Tag Browse tree in the Designer.

Garth

---

<div class="post-metadata">

**Author:** ![ddonco](https://avatars.discourse-cdn.com/v4/letter/d/3ab097/32.png) [@ddonco](https://forum.inductiveautomation.com/u/ddonco)\
**Post date:** [April 2, 2021, 10:06pm UTC](https://forum.inductiveautomation.com/t/when-exactly-do-leased-tags-of-a-udt-become-active/45196/3 "2021-04-02T22:06:18Z")

</div>

Thanks for the clarification. You’ll have to forgive me because I’m going to belabor the point a little more.

Like I mentioned, our templates pull status information from a UDT instance, kind of like my attached example, using expressions or indirect tag references. We are passing the tag path of the UDT instance to the template as a template parameter, then resolving the path to the actual opc tags within the UDT using the expression/indirect tag. We don’t bind the UDT instance itself to the template. Does this scenario still cause the leased SQL query tag to start executing when we open a window that contains these templates?

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

Thanks again for your help!

---

<div class="post-metadata">

**Author:** ![brandon1](https://avatars.discourse-cdn.com/v4/letter/b/ea666f/32.png) [@brandon1](https://forum.inductiveautomation.com/u/brandon1)\
**Post date:** [June 4, 2021, 7:22pm UTC](https://forum.inductiveautomation.com/t/when-exactly-do-leased-tags-of-a-udt-become-active/45196/4 "2021-06-04T19:22:19Z")

</div>

> [@ggross](#):
>
> In 7.x versions the same applies, plus any subscriptions via the Tag Browse tree in the Designer.

Does this mean that in 8.x versions of Ignition the tag will not become leased when viewed in the Designer's Tag Browser tree?

---

<div class="post-metadata">

**Author:** ![ggross](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/ggross/32/12668_2.png) [@ggross](https://forum.inductiveautomation.com/u/ggross)\
**Post date:** [July 6, 2021, 4:23pm UTC](https://forum.inductiveautomation.com/t/when-exactly-do-leased-tags-of-a-udt-become-active/45196/5 "2021-07-06T16:23:40Z")

</div>

@brandon1,

Sorry for the delayed response. That is correct, in 8.x versions of Ignition tags will not become leased when viewed within the Designer’s Tag Browse tree. For the lease to trigger within the Designer, you would need to open a view/window that contained a binding to that specific tag.

Garth
