| ||
| Description: | |||||||||||||||||||||||||||||||||||||||||||||||||||||||
A Processing Object that stabilizes an input by ignoring its changes for a period of time after going to a logical High state. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Operation: | |||||||||||||||||||||||||||||||||||||||||||||||||||||||
An oDebounce Object takes the Flag property to which the Input property points and extends it by the amount of time specified by the Period property. The Operate property determines if operation is active and the Result property is updated. Each time the Result property is updated, its value is also copied to the Flag property of the Object to which the Output property points. If the InvertOut property is set to 1, then the value of the Result property is inverted before it is copied. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Storage size & Availability: | |||||||||||||||||||||||||||||||||||||||||||||||||||||||
The following table lists the size and availability of the oDebounce Object and its variations:
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Properties: | |||||||||||||||||||||||||||||||||||||||||||||||||||||||
The following table lists the Properties of the oDebounce Object:
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Example: | |||||||||||||||||||||||||||||||||||||||||||||||||||||||
In the following example, a Virtual Circuit is created that uses the oDebounce Object to monitor a push button switch on I/O line 8. When the button is pressed, it turns on I/O line 9 for 1 second longer than the button is pressed, if the button is released and then repressed within that 1 second, then the oDebounce will ignore the change and I/O line 9 will stay on while the button was released.
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||
| See Also: | |||||||||||||||||||||||||||||||||||||||||||||||||||||||
oRepeat - The oRepeat Object provides an auto-repeat function for devices such as push buttons. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||