Debounce ('Expression','Debounce interval')

Arguments

'Expression'

Signal to debounce

'Debounce interval'

Dead time (reaction time)

Description

This function delivers a debounced signal trend of 'Expression' with 'Debounce interval' as dead time in seconds. 'Debounce interval' is interpreted as position in m for length based signals.

The function works in a manner similar to an OFF-delay time relay, however, with the difference that the signal change from TRUE to FALSE (falling edge) is presented in real time, i.e. without delay, unless another change from FALSE to TRUE (rising edge) occurs during the time set.

In this way, it is possible to smooth unsteady signals, for example, from photocells or limit switches. This is particularly important if these signals are used as conditions in certain operations, such as XMarkValid or XCutValid, because every discontinuity would interrupt the calculation of the operation, so that result values would be lost. The following picture shows the difference.