I am attempting to condition(using an expression) the priority of a UDT instance's alarm priority based on the value of another tag.
Below is the rough structure of that alarm priority value I'm trying to set, and the OPCTag value I need to reference,
[TagProvider]A/B/N/UDTInstance_B/AlarmFolder/OPCTag/Alarms/Alarm.Priority
[TagProvider]A/B/C/DifferentUDTInstance_B/AlarmFolder/OPCTag
I need to make this binding generic enough such that B can change and my expression will still work, but I'm not sure how to make this work since I can't declare "B" as a variable using expression syntax. In my project, B is a folder representing a process #, and is used as the suffix for instances of UDTs of which there are many.
Does anyone have any ideas how I might be able to solve this? I've tried using scripting, but it seems ignition blocks writing to the .priority property.