Push-Button (Counting)
Operator Menu Location: Generic Hardware Operators → Push Buttons/Switches
Operator Bitmap:
Functional Description:
The Counting Push Button generic hardware operator provides access to a pushbutton resource in the physical hardware. When the generic operator is linked to a specific hardware resource, its output value will relate to the physical state of that resource.
The Counting Push Button maintains a count of the number of times the corresponding physical button has been depressed. When the direction input is x2=HIGH, the operator output will increment by r where r is a user-defined Increment Magnitude parameter. When the direction input is x2=LOW, the operator output will decrement by r.
The output count is limited by user-defined parameters Minimum Count and Maximum Count. The output count can be arranged to automatically rollover when these limits are exceeded.
User-Defined Properties:
Object Name. A string label that identifies the operator
Minimum Count. The minimum output of the operator. A decrement action will not result in the output being lower than this value.
Maximum Count. The maximum output of the operator. An increment action will not result in the output being higher than this value.
Initial Count. The operator output at startup, y(0).
Increment Magnitude. The magnitude of the adjustment made to the operator output while the physical pushbutton is depressed.
Delay Before Key Repeat. Time in msecs between button pushes which signals a new count is registered.
Key Repeat Time. Time in msecs the key repeats when button is held down.
Overload Action. Saturate, Reset or Rollover on Overload.
Display Reset Input. This property determines if the reset input pin x1 is visible in the schema diagram. Design Pad issues a warning upon processing the schema when the pin is visible but not connected. The warning message is not issued when the pin is not visible (when this property is not checked).
Display Up/Down Count Input. This property determines if the direction input pin x2 is visible in the schema diagram. Design Pad issues a warning upon processing the schema when the pin is visible but not connected. The warning message is not issued when the pin is not visible (when this property is not checked).
Comments: None.
See Also: Push Button (Binary)