Example: Use Interlocked push buttons
In this example, the
Interlocked
push buttons control the position of a guide that directs bottles from the main conveyor to one of three secondary conveyors. Only one secondary conveyor can be operational at any moment.- Create anInterlockedpush button with back color and border color for State 0 as red, and State 1 as green. Make the State 0 and State 1 captions "Conveyor 1." Assign a tag to the Value connection.
- Copy theInterlockedpush button and paste two additional copies of it.
- For the first copy, change the button value property to 1 and the State 0 and State 1 captions to "Conveyor 2."
- For the second copy, change the value property to 2 and the State 0 and State 1 captions to "Conveyor 3."
When the operator presses one of these three
Interlocked
push buttons the button’s value property is written to the Value connection. The data source registers the value change and the appropriate conveyor becomes the active conveyor.Provide Feedback