How the momentary push button works at runtime

When the operator
presses
the button, it changes from State 0 to State 1 and sends the State 1 value to the data source. When the operator
releases
the button, it changes from State 1 back to State 0 and sends the State 0 value to the data source.
The momentary push button’s behavior at runtime also depends on how you set up the hold time and connections.
Using hold times
  • The button’s hold time (specified in the General tab of the Momentary Push Button dialog box) ensures that the Value connection’s value is held for at least the specified time.
Using connections
  • If you assign just the Value connection and not the Indicator connection, the button’s pressed state is displayed as soon as the button is pressed. The feedback for this control is local and immediate. It does not necessarily reflect the Value connection's value in the data source.
  • If you assign the same tag to the Value and Indicator connections, at runtime the displayed button state is based on the Indicator connection. If network traffic is heavy, the display response might be delayed.
  • If the Indicator connection value is a floating point value, the application rounds the value to the nearest integer to determine the state to display.
Starting applications
  • When an application starts up at runtime, including starting after a reboot, the button is set to State 0 but the state value is not written to the Value connection.
Opening graphic displays
  • When you open a display at runtime, the button is set to State 0 but the state value is not written to the Value connection.
  • When you open a display at runtime, the application reads the Indicator control value and updates the display based on the value.
Provide Feedback
Have questions or feedback about this documentation? Please submit your feedback here.
Normal