Combining multiple tags into one

I was wondering if anyone has any insights. i have a large number of valves with indicator tags for open and closed. Is there any way to combine the open and closed position of each valve into an array or UDT to use in indicating the valve condition. ie valve opened = valve 1 open, valve closed = valve 1 closed. Tag valve position : valve 1 open=1, valve 1 closed =0

I would add a couple of custom properties to a multistate indicator, then use binEnc to drive the state of the indicator. See attached file. Note: the radio buttons are there to simulate the I/O.

test_multistateDemo_2019-06-15_0821.proj (6.6 KB)


1 Like

Thank you, this worked perfectly.