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.
  1. Create an
    Interlocked
    push 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.
  2. Copy the
    Interlocked
    push button and paste two additional copies of it.
  3. For the first copy, change the button value property to 1 and the State 0 and State 1 captions to "Conveyor 2."
  4. 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
Have questions or feedback about this documentation? Please submit your feedback here.
Normal