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

Title: CLICK-Looking for a timer example that continues time even trigger status chgs
Post 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.

Title: Re: CLICK-Looking for a timer example that continues time even trigger status chgs
Post by: b_carlton on July 25, 2018, 12:14:19 PM
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.
Title: Re: CLICK-Looking for a timer example that continues time even trigger status chgs
Post by: franji1 on July 25, 2018, 12:51:40 PM
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).
Title: Re: CLICK-Looking for a timer example that continues time even trigger status chgs
Post by: Controls Guy on July 25, 2018, 08:08:30 PM
I don't think he wants off delay, I think he wants a one shot of controllable duration.
Title: Re: CLICK-Looking for a timer example that continues time even trigger status chgs
Post by: timk5000 on July 26, 2018, 05:40:35 AM
Thanks to all, I understand now