I have a project requirement where the alarm acknowledgement mode needs to be set based on priority. For example, critical might be manual, all others are auto. It could also be something like critical, medium, low is manual and all others are auto. I understand this is about as stupid as it gets, but it's something we need to implement.
My desire is to have some global variable, either top level in a project script or memory tag, etc., where we can define each priority and then its ack mode.
What is the most efficient way to go about this? I assume an expression is what I need to shoot for? If I were to use memory tags and then read their values for each alarm, what impact might this cause?
Any comments (other than telling me how dumb this is ) is much appreciated.
Edit, what about something like a dataset tag (named AckModes) with a priority column and an ack mode column. Each column is string and the values match the string values for priorities and ack modes. The expression would be this:
lookup({[~]Global/Alarms/AckModes},{priority}, "Manual")
While this works, I'm interested in the peformance of this across all tags/alarms.