Example: Use a Multistate push button
In this example, the Multistate push button controls the mode of operation for the bag filler machine. The machine can operate manually or automatically, or it can be turned off.
If the operator controls the mode of operation
Create a Multistate push button with the captions "Off" for State 0, "Manual" for State 1, and "Automatic" for State 2. The application monitors the tag you assign to the Value connection to control the operation mode. If the operator presses the button to change to the next mode, the Value connection value changes, and the machine switches modes.
If a supervisory system controls the mode of operation
If the operation mode can also be set by a supervisory system, the operator must be able to view the application’s local display to see which mode the machine is currently in. In this case, set the "Next state based on" option to Value. This causes the application to read the Value connection and update the button’s state before changing to the next state.
Assign the same tag to the Value connection and the Indicator connection. This ensures that the Multistate push button always displays the current operation mode.
Provide Feedback