I am an ignition novice.
I want to create a template that i can then place on a graphic page to represent a process valve.
I would like the colour of the valve symbol on the template to represent the state of the valve
eg. Grey = closed
Blue = fail to open
Red = fail to close
Green = open.
I can generate these states as an integer value in a tag say Valve12345 where 0 = closed, 1 = fail to open
2 = fail to close, 3 = open.
I can then drag and drop the valve tag onto the instance of the template and this works great.
Now I would like to be able to open a popup window by clicking on the symbol on the graphic with buttons to say open and close the valve. I would like to bind these buttons to tags based upon the tag that was dropped onto the instance of the template.
EG the open button would be bound to tag Valve12345Open
and the closed button to tag Valve12345Close
Can you advise how this may be achieved.