If you need a parameter that's hard-coded to a controller-scoped tag and doesn't have to be added to each "instance", you would use a subroutine instead of an AOI.
Subroutines can have input and output parameters (which would be your UDT) but can also work directly with controller-scoped tags without having to map them in or out.
Of course, you don't get some of the niceties of an AOI, like individual instance monitoring and portability, but you can't have your cake and eat it too.
Subroutines can have input and output parameters (which would be your UDT) but can also work directly with controller-scoped tags without having to map them in or out.
Of course, you don't get some of the niceties of an AOI, like individual instance monitoring and portability, but you can't have your cake and eat it too.