<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent posts to INITonce</title><link href="https://forge.codesys.com/forge/talk/CODESYS-V2/thread/72a6eaec0e/" rel="alternate"/><link href="https://forge.codesys.com/forge/talk/CODESYS-V2/thread/72a6eaec0e/feed.atom" rel="self"/><id>https://forge.codesys.com/forge/talk/CODESYS-V2/thread/72a6eaec0e/</id><updated>2020-02-27T23:30:44.626000Z</updated><subtitle>Recent posts to INITonce</subtitle><entry><title>INITonce</title><link href="https://forge.codesys.com/forge/talk/Codesys%2520V2.3/thread/72a6eaec0e/?limit=25#d6c2" rel="alternate"/><published>2020-02-27T23:30:44.626000Z</published><updated>2020-02-27T23:30:44.626000Z</updated><author><name>alex87</name><uri>https://forge.codesys.com/u/alex87/</uri></author><id>https://forge.codesys.com36e2003070f3581674fd73775ceab8e46507ee87</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;hmmm......&lt;/p&gt;
&lt;p&gt;It's not realy "system timer", it is timer for dislpay lightning. I have in mind this option, but it doesn't really work:&lt;/p&gt;
&lt;hr/&gt;
&lt;p&gt;IF done THEN&lt;br/&gt;
    RETURN;&lt;br/&gt;
END_IF&lt;br/&gt;
(&lt;em&gt;NetzDummy;&lt;/em&gt;)&lt;br/&gt;
SysSetLighting(disp_time:=30);&lt;br/&gt;
(&lt;em&gt;SystemSetParameter(3010, rgb);&lt;/em&gt;)&lt;br/&gt;
done:=TRUE;&lt;/p&gt;
&lt;hr/&gt;
&lt;p&gt;If i put only SysSetLighting in FB, the FB resets timer every cycle.&lt;/p&gt;
&lt;p&gt;regards, alex&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>INITonce</title><link href="https://forge.codesys.com/forge/talk/Codesys%2520V2.3/thread/72a6eaec0e/?limit=25#1d2e" rel="alternate"/><published>2020-02-27T23:30:42.965000Z</published><updated>2020-02-27T23:30:42.965000Z</updated><author><name>shooter</name><uri>https://forge.codesys.com/u/shooter/</uri></author><id>https://forge.codesys.comff0d298b29acaf93dd57ed4c8ae55efb15d3d17f</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;in source there is a special task for this called start&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>INITonce</title><link href="https://forge.codesys.com/forge/talk/Codesys%2520V2.3/thread/72a6eaec0e/?limit=25#1650" rel="alternate"/><published>2020-02-27T23:30:38.279000Z</published><updated>2020-02-27T23:30:38.279000Z</updated><author><name>t.lundahl</name><uri>https://forge.codesys.com/u/t-lundahl/</uri></author><id>https://forge.codesys.coma988066cc818dabcff1551d70f53acf29df555a3</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hi Alex!&lt;/p&gt;
&lt;p&gt;To make a first scan is easy, but in my examples the code doesn't execute more than one scan&lt;br/&gt;
cycle. So to have a system timer here doesn't work.&lt;/p&gt;
&lt;p&gt;I usually do a like to use a trigger, TRUE will be active when the system start and to it stops.&lt;/p&gt;
&lt;p&gt;R_TRIG(CLK:=TRUE, Q=&amp;gt;);&lt;/p&gt;
&lt;p&gt;or if you are making funktionblocks I do this:&lt;/p&gt;
&lt;p&gt;IF EN AND NOT ENO THEN&lt;br/&gt;
...firstscan code&lt;br/&gt;
END_IF;&lt;/p&gt;
&lt;p&gt;code&lt;br/&gt;
...&lt;/p&gt;
&lt;p&gt;ENO:=EN;&lt;/p&gt;
&lt;p&gt;(&lt;em&gt; You need to make the input EN and the output ENO first. &lt;/em&gt;)&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>INITonce</title><link href="https://forge.codesys.com/forge/talk/Codesys%2520V2.3/thread/72a6eaec0e/?limit=25#597b" rel="alternate"/><published>2020-02-27T23:30:36.628000Z</published><updated>2020-02-27T23:30:36.628000Z</updated><author><name>alex87</name><uri>https://forge.codesys.com/u/alex87/</uri></author><id>https://forge.codesys.com1192226fde8b83e3e74a4735534ef12df1f0d9de</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hello!&lt;/p&gt;
&lt;p&gt;I have to make a FB or PRG which will initialise only on PLC start, that will start only once, not in the cycle. In the PRG will be system timer which can not be reset with task cycle.&lt;br/&gt;
Any suggestions?&lt;/p&gt;
&lt;p&gt;Thanks in advance!&lt;/p&gt;
&lt;p&gt;Alex&lt;/p&gt;&lt;/div&gt;</summary></entry></feed>