Host Engineering Forum
General Category => Do-more CPUs and Do-more Designer Software => Topic started by: timk on July 25, 2018, 11:51:03 AM
-
I am looking for a timer program example that will continue even if the input that turns it on goes off.
When X1 turns on Y1 I want Y1 to stay on for a set amount of time Even if X1 turns off.
Is there a timer that works this way or will I need to latch the timer in and reset it when its done.
So far Every timer example I have found the timer stops timing when the input changes state.
-
Even though the Click is not a Host Engineering product I will give you an example. This timer would reset and begin again if the input stays on past the preset time. I you do not want this (e.g. you want only one time period) then use a rising edge one shot of the input condition. Replace C1 with Y1 (2 places) if you wish a direct answer to your question.
-
In Do-more, that would be the OFFDTMR Off Delay Timer instruction. See the attached timing diagram from the instruction editor. You can have a constant delay or a variable delay (in milliseconds).
-
I don't think he wants off delay, I think he wants a one shot of controllable duration.
-
Thanks to all, I understand now