Toggle button issue
I am using several toggle buttons to indicate the state of breakers that do not have feedback from the field. My problem is when I select a second toggle button, it changes the state of the first toggle button. How can I get them working independently of each other?
Answers
Set different targets for each button
So what you describe is that you're just putting the Toggle Button on the HMI with no actual connection to a variable in the PLC ?
The toggle button doesn't store the state anywhere - it can only read the state from the PLC.
Clicking a toggle button with no connected variable might appear to show that it goes "on" - but it doesn't. It just tries to respond to the HMI click event. It cant write to ( and hence doesn't store ) the breaker state.
If you are writing to a Boolean property somewhere, check the property value is actually being updated and that you have connected all the parameters of the ToggleButton correctly.
Off Topic ....
Toggle Buttons look exactly like page links. This means that Operators trying to find page links on graphics end up clicking toggle buttons. That's never good. Only use Toggle Buttons on faceplates. For data entry and commands, use the Boolean DEW components to open an On/Off popup dialog on Operator Graphics.
The toggle button doesn't store the state anywhere - it can only read the state from the PLC.
Clicking a toggle button with no connected variable might appear to show that it goes "on" - but it doesn't. It just tries to respond to the HMI click event. It cant write to ( and hence doesn't store ) the breaker state.
If you are writing to a Boolean property somewhere, check the property value is actually being updated and that you have connected all the parameters of the ToggleButton correctly.
Off Topic ....
Toggle Buttons look exactly like page links. This means that Operators trying to find page links on graphics end up clicking toggle buttons. That's never good. Only use Toggle Buttons on faceplates. For data entry and commands, use the Boolean DEW components to open an On/Off popup dialog on Operator Graphics.
Add new comment