<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent posts to IF not work</title><link href="https://forge.codesys.com/forge/talk/Runtime/thread/812d2ec4b4/" rel="alternate"/><link href="https://forge.codesys.com/forge/talk/Runtime/thread/812d2ec4b4/feed.atom" rel="self"/><id>https://forge.codesys.com/forge/talk/Runtime/thread/812d2ec4b4/</id><updated>2020-02-27T15:52:14.916000Z</updated><subtitle>Recent posts to IF not work</subtitle><entry><title>IF not work</title><link href="https://forge.codesys.com/forge/talk/Runtime/thread/812d2ec4b4/?limit=25#617a" rel="alternate"/><published>2020-02-27T15:52:14.916000Z</published><updated>2020-02-27T15:52:14.916000Z</updated><author><name>josepmariarams</name><uri>https://forge.codesys.com/u/josepmariarams/</uri></author><id>https://forge.codesys.com204932913f9e8a54bb3c16306d9a9d6d44e5b90d</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;May be possible that you aren t calling from anywhere tour st code?&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>IF not work</title><link href="https://forge.codesys.com/forge/talk/Runtime/thread/812d2ec4b4/?limit=25#1200" rel="alternate"/><published>2020-02-27T15:52:12.756000Z</published><updated>2020-02-27T15:52:12.756000Z</updated><author><name>teichhei</name><uri>https://forge.codesys.com/u/teichhei/</uri></author><id>https://forge.codesys.com63c075a20c2bb3995ef64ae57d6a909598f2969f</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;I would say because your timer is counting in the background and you may be hitting the fb at a .ET value of 35.012s or 34.985s which both doesn't equal 35s. Or are you saying that it is never assigning any value? Is the ST in a function block or in another program?&lt;/p&gt;
&lt;p&gt;Sent from my SM-G935F using Tapatalk&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>IF not work</title><link href="https://forge.codesys.com/forge/talk/Runtime/thread/812d2ec4b4/?limit=25#dbc5" rel="alternate"/><published>2020-02-27T15:52:11.952000Z</published><updated>2020-02-27T15:52:11.952000Z</updated><author><name>alverman</name><uri>https://forge.codesys.com/u/alverman/</uri></author><id>https://forge.codesys.com1a547cea022780a83f8fe804b0dda6d845ebc98b</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Good morning,&lt;br/&gt;
do you think this code does not produce a result in the vaiabile TapCucStat?&lt;/p&gt;
&lt;p&gt;This code is in ST and the TOF is in LD&lt;/p&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;&lt;span&gt;&lt;/span&gt;&lt;span class="k"&gt;IF&lt;/span&gt; &lt;span class="nv"&gt;PLC_PRG&lt;/span&gt;.&lt;span class="nv"&gt;TOF_Open_Cucina&lt;/span&gt;.&lt;span class="nv"&gt;Q&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nv"&gt;TRUE&lt;/span&gt; &lt;span class="nv"&gt;AND&lt;/span&gt; &lt;span class="nv"&gt;PLC_PRG&lt;/span&gt;.&lt;span class="nv"&gt;TOF_Open_Cucina&lt;/span&gt;.&lt;span class="nv"&gt;ET&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nv"&gt;T&lt;/span&gt;&lt;span class="sc"&gt;#35&lt;/span&gt;&lt;span class="nv"&gt;S&lt;/span&gt; &lt;span class="k"&gt;THEN&lt;/span&gt;
   &lt;span class="nv"&gt;TapCucStat&lt;/span&gt; :&lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="mi"&gt;35&lt;/span&gt;&lt;span class="c1"&gt;;&lt;/span&gt;
&lt;span class="k"&gt;ELSE&lt;/span&gt;
   &lt;span class="nv"&gt;TapCucStat&lt;/span&gt; :&lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nv"&gt;TIME_TO_INT&lt;/span&gt;&lt;span class="ss"&gt;(&lt;/span&gt;&lt;span class="nv"&gt;PLC_PRG&lt;/span&gt;.&lt;span class="nv"&gt;TOF_Open_Cucina&lt;/span&gt;.&lt;span class="nv"&gt;ET&lt;/span&gt;&lt;span class="ss"&gt;)&lt;/span&gt;&lt;span class="o"&gt;/&lt;/span&gt;&lt;span class="mi"&gt;1000&lt;/span&gt;&lt;span class="c1"&gt;;&lt;/span&gt;
&lt;span class="nv"&gt;END_IF&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;


&lt;p&gt;I see the ET value of the TOF incremented but not assigned to the variable.&lt;br/&gt;
Where am I wrong?&lt;/p&gt;
&lt;p&gt;Thank you, Alberto&lt;/p&gt;&lt;/div&gt;</summary></entry></feed>