<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent posts to R_TRIG and condition</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/2fb310507d/" rel="alternate"/><link href="https://forge.codesys.com/forge/talk/Engineering/thread/2fb310507d/feed.atom" rel="self"/><id>https://forge.codesys.com/forge/talk/Engineering/thread/2fb310507d/</id><updated>2022-03-09T02:45:04.927000Z</updated><subtitle>Recent posts to R_TRIG and condition</subtitle><entry><title>R_TRIG and condition</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/2fb310507d/?limit=25#d231" rel="alternate"/><published>2022-03-09T02:45:04.927000Z</published><updated>2022-03-09T02:45:04.927000Z</updated><author><name>krstech</name><uri>https://forge.codesys.com/u/krstech/</uri></author><id>https://forge.codesys.comda0f3954988b4242f650c0cec0946bd6f75353fb</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;div class="codehilite"&gt;&lt;pre&gt;&lt;span&gt;&lt;/span&gt;&lt;span class="n"&gt;oneshot&lt;/span&gt; &lt;span class="o"&gt;:&lt;/span&gt; &lt;span class="n"&gt;R_Trig&lt;/span&gt;&lt;span class="o"&gt;;&lt;/span&gt;

&lt;span class="n"&gt;oneshot&lt;/span&gt;&lt;span class="o"&gt;(&lt;/span&gt;&lt;span class="n"&gt;clk&lt;/span&gt;&lt;span class="o"&gt;:=&lt;/span&gt;&lt;span class="n"&gt;start1&lt;/span&gt;&lt;span class="o"&gt;);&lt;/span&gt;

&lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="n"&gt;oneshot&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="na"&gt;q&lt;/span&gt; &lt;span class="n"&gt;then&lt;/span&gt;
    &lt;span class="n"&gt;something&lt;/span&gt; &lt;span class="o"&gt;:=&lt;/span&gt; &lt;span class="kc"&gt;true&lt;/span&gt;&lt;span class="o"&gt;;&lt;/span&gt;

    &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="n"&gt;something&lt;/span&gt; &lt;span class="n"&gt;then&lt;/span&gt;
          &lt;span class="n"&gt;otherThings&lt;/span&gt; &lt;span class="o"&gt;:=&lt;/span&gt; &lt;span class="kc"&gt;true&lt;/span&gt;&lt;span class="o"&gt;;&lt;/span&gt;
    &lt;span class="n"&gt;end_if&lt;/span&gt;
&lt;span class="n"&gt;end_if&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;


&lt;p&gt;if reset then&lt;br/&gt;
       something := false;&lt;br/&gt;
       otherThings := false;&lt;br/&gt;
   end_if&lt;/p&gt;
&lt;p&gt;I hope you find this helpful&lt;/p&gt;
&lt;p&gt;-krstech&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>R_TRIG and condition</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/2fb310507d/?limit=25#66b3" rel="alternate"/><published>2022-02-21T13:42:18.823000Z</published><updated>2022-02-21T13:42:18.823000Z</updated><author><name>libi</name><uri>https://forge.codesys.com/u/libi/</uri></author><id>https://forge.codesys.com713c2cfcfb86babf8deb7637371231845143ec89</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;I would like to use R_TRIG with some condition after like below:&lt;/p&gt;
&lt;p&gt;R_TRIG(IN:=Start1)&lt;/p&gt;
&lt;p&gt;if R_TRIG.Q THEN&lt;br/&gt;
 do something&lt;br/&gt;
    if something then&lt;br/&gt;
        do&lt;br/&gt;
    end_if&lt;br/&gt;
end_if&lt;/p&gt;
&lt;p&gt;but when I do that after the condition with R_TRIG.Q, all of the condition are blocked i don't know why if U can help me&lt;/p&gt;&lt;/div&gt;</summary></entry></feed>