News:

  • August 24, 2026, 07:35:32 PM

Login with username, password and session length

Author Topic: CLICK-Looking for a timer example that continues time even trigger status chgs  (Read 8934 times)

timk

  • Jr. Member
  • **
  • Posts: 15
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.


b_carlton

  • Internal Dev
  • Hero Member
  • ****
  • Posts: 606
    • thePLCguy
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.
« Last Edit: July 25, 2018, 12:18:33 PM by b_carlton »
An output is a PLC's way of getting its inputs to change.

franji1

  • Bit Weenie
  • Host Moderator
  • Hero Member
  • *****
  • Posts: 3843
    • Host Engineering
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).

Controls Guy

  • Internal Dev
  • Hero Member
  • ****
  • Posts: 3626
  • Darth Ladder
I don't think he wants off delay, I think he wants a one shot of controllable duration.
I retract my earlier statement that half of all politicians are crooks.  Half of all politicians are NOT crooks.  There.

timk5000

  • Jr. Member
  • **
  • Posts: 15
Thanks to all, I understand now