V+ Process Manager Documentation sig = 2100 debounce.time = 2.5 is.on = FALSE ; Clear the tracking structures for the signal CALL pm.sig.clear(sig) ; Trun the signal on SIGNAL sig TYPE $TIME() ; Wait until the signal has been on for the required amount of time WHILE (is.on == FALSE) DO CALL pm.sig.check(sig, debounce.time, is.on) END TYPE $TIME() SIGNAL -sig .END pm.sig.clear(sig) Abstract Clears the variables used to track the status of a signal.
Input Parameters Parameter Description sig Signal to clear Output Parameters None Example .PROGRAM a.ex2.debounce() AUTO REAL sig, is.on, debounce.time ; Define the signal and the amount of time we want the signal ; to remain on before we recognize it is on sig = 2100 debounce.time = 2.5 is.on = FALSE ; Clear the tracking structures for the signal CALL pm.sig.clear(sig) ; Trun the signal on SIGNAL sig TYPE $TIME() ; Wait until the signal has been on for the required amount of time WHILE (is.on == FALSE) DO ACE Reference Guide, 18317-000 Rev A Page 804