<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent posts to Retentive Timer</title><link href="https://forge.codesys.com/forge/talk/CODESYS-V2/thread/b89f99a9f4/" rel="alternate"/><link href="https://forge.codesys.com/forge/talk/CODESYS-V2/thread/b89f99a9f4/feed.atom" rel="self"/><id>https://forge.codesys.com/forge/talk/CODESYS-V2/thread/b89f99a9f4/</id><updated>2020-02-27T22:27:25.926000Z</updated><subtitle>Recent posts to Retentive Timer</subtitle><entry><title>Retentive Timer</title><link href="https://forge.codesys.com/forge/talk/Codesys%2520V2.3/thread/b89f99a9f4/?limit=25#5a58" rel="alternate"/><published>2020-02-27T22:27:25.926000Z</published><updated>2020-02-27T22:27:25.926000Z</updated><author><name>shooter</name><uri>https://forge.codesys.com/u/shooter/</uri></author><id>https://forge.codesys.com5325fa7b303cc11bc1d94ec416a30c90a17943f0</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;hugo my best, if the input is down the timer stops as normal, because the input is not retained. he should use a take over contact to keep his input.&lt;/p&gt;
&lt;p&gt;841 has no rtc in so will not work.&lt;/p&gt;
&lt;p&gt;I would not use two weeks btw but 12 hours so the fan will not get stuck by dirt from the other one, is there a prevention the stopped fan does not get air from the other?&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Retentive Timer</title><link href="https://forge.codesys.com/forge/talk/Codesys%2520V2.3/thread/b89f99a9f4/?limit=25#7569" rel="alternate"/><published>2020-02-27T22:27:24.262000Z</published><updated>2020-02-27T22:27:24.262000Z</updated><author><name>spfeif</name><uri>https://forge.codesys.com/u/spfeif/</uri></author><id>https://forge.codesys.comce29e1c1d65d37b13ec4091acc0062efeb1dd6db</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;If you are expecting something to work over long lengths of time I am assuming you have a real time clock? Just compare the start time to the current time and when greater then your two week limit turn on the output? With no real time clock it will never work if you shut off power. Look at SysLibRtc.lib. IF (CurrentTime - StartTime &amp;gt; Week2) then setoutput end_if Just make the start time retain.&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Retentive Timer</title><link href="https://forge.codesys.com/forge/talk/Codesys%2520V2.3/thread/b89f99a9f4/?limit=25#0606" rel="alternate"/><published>2020-02-27T22:27:19.897000Z</published><updated>2020-02-27T22:27:19.897000Z</updated><author><name>hugo</name><uri>https://forge.codesys.com/u/hugo/</uri></author><id>https://forge.codesys.com836758715fd1429b503ebbd1be29eb0be21c410a</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;that should not be the case, i believe something esle is wrong&lt;/p&gt;
&lt;p&gt;retain only makes sure that the inner variables of the timer are kept in non volatile emeory during power loss&lt;/p&gt;
&lt;p&gt;there should not be a funktional difference between retain and non retain at all&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Retentive Timer</title><link href="https://forge.codesys.com/forge/talk/Codesys%2520V2.3/thread/b89f99a9f4/?limit=25#f9f0" rel="alternate"/><published>2020-02-27T22:27:18.319000Z</published><updated>2020-02-27T22:27:18.319000Z</updated><author><name>DodgyDave80</name><uri>https://forge.codesys.com/u/dodgydave80/</uri></author><id>https://forge.codesys.comaab3a650e4ce86a25d7cf4291d67a46af03cb826</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hi Hugo, &lt;/p&gt;
&lt;p&gt;Declaring as Retain didn't work because as soon as the input of the timer returns to false then the timer resets.&lt;/p&gt;
&lt;p&gt;Does anyone know if there is a clock pulse like the Siemens s7 300 that i can use. I’m currently using a timer set a 1 sec which then adds 1 to a retentive real, but the timing is not accurate. &lt;/p&gt;
&lt;p&gt;Thank You&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Retentive Timer</title><link href="https://forge.codesys.com/forge/talk/Codesys%2520V2.3/thread/b89f99a9f4/?limit=25#04c4" rel="alternate"/><published>2020-02-27T22:27:16.759000Z</published><updated>2020-02-27T22:27:16.759000Z</updated><author><name>hugo</name><uri>https://forge.codesys.com/u/hugo/</uri></author><id>https://forge.codesys.com20afd78f47dac4fec29e4886f38e51c663247a06</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;declare the timer as follows&lt;/p&gt;
&lt;p&gt;var retain&lt;/p&gt;
&lt;p&gt;timer1 : tp;&lt;/p&gt;
&lt;p&gt;end_var&lt;/p&gt;
&lt;p&gt;this should fix your problem, all vars of tp are in retain memory&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Retentive Timer</title><link href="https://forge.codesys.com/forge/talk/Codesys%2520V2.3/thread/b89f99a9f4/?limit=25#20e2" rel="alternate"/><published>2020-02-27T22:27:12.375000Z</published><updated>2020-02-27T22:27:12.375000Z</updated><author><name>Rolf-Geisler</name><uri>https://forge.codesys.com/u/rolf-geisler/</uri></author><id>https://forge.codesys.comd9ccf9bad53883b732c4071f9d3029b3495c8492</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hi Dave,&lt;/p&gt;
&lt;p&gt;I'm afraid there's no such timer. I would suggest to manage these two fans by a state machine. The situation of this machine can be stored as a RETAIN PERSISTENT, so it will survive even a software download.&lt;/p&gt;
&lt;p&gt;Don't know, if Wago supports PERSISTENT, but RETAIN alone is good to survive a power fail.&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;Rolf&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Retentive Timer</title><link href="https://forge.codesys.com/forge/talk/Codesys%2520V2.3/thread/b89f99a9f4/?limit=25#4a51" rel="alternate"/><published>2020-02-27T22:27:10.811000Z</published><updated>2020-02-27T22:27:10.811000Z</updated><author><name>DodgyDave80</name><uri>https://forge.codesys.com/u/dodgydave80/</uri></author><id>https://forge.codesys.comc362b6768aa469ac713e406c60147e33094ddc5a</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hi, &lt;/p&gt;
&lt;p&gt;I am working on a program that has a duty standby operation for 2 fans. Fan1 should run for 2 weeks then fan2 for 2 weeks. this timer needs to remember it's position even if the input is false. my problem is that a normal timer (ton) resets after the input returns to false and after a power fail.&lt;/p&gt;
&lt;p&gt;What i need is a timer that retains the current time until reset. Is there a simple way of doing this?&lt;/p&gt;
&lt;p&gt;The program will be used on a Wago 750-841.&lt;/p&gt;
&lt;p&gt;Thanks&lt;/p&gt;
&lt;p&gt;Dave&lt;/p&gt;&lt;/div&gt;</summary></entry></feed>