<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent posts to rising edge not working when declared in other function fb</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/3b0a87d206/" rel="alternate"/><link href="https://forge.codesys.com/forge/talk/Engineering/thread/3b0a87d206/feed.atom" rel="self"/><id>https://forge.codesys.com/forge/talk/Engineering/thread/3b0a87d206/</id><updated>2020-02-27T13:54:35.825000Z</updated><subtitle>Recent posts to rising edge not working when declared in other function fb</subtitle><entry><title>rising edge not working when declared in other function fb</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/3b0a87d206/?limit=25#1caa" rel="alternate"/><published>2020-02-27T13:54:35.825000Z</published><updated>2020-02-27T13:54:35.825000Z</updated><author><name>Anonymous</name><uri>https://forge.codesys.com/u/*anonymous/</uri></author><id>https://forge.codesys.com9b9d9620c3df649edb5f9f5a85733b2a8c399d53</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;&lt;em&gt;Originally created by:&lt;/em&gt; barkamharikrishna&lt;/p&gt;
&lt;p&gt;hi learnetk&lt;br/&gt;
thnaks for the reply,&lt;/p&gt;
&lt;p&gt;i had placed R_Trig in if condition and the condition is not true to reset the R_Trig .&lt;br/&gt;
i had chnaged the code and works fine.        &lt;/p&gt;
&lt;p&gt;many thánks&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>rising edge not working when declared in other function fb</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/3b0a87d206/?limit=25#24cb" rel="alternate"/><published>2020-02-27T13:54:35.232000Z</published><updated>2020-02-27T13:54:35.232000Z</updated><author><name>learnetk</name><uri>https://forge.codesys.com/u/learnetk/</uri></author><id>https://forge.codesys.com6bac83a72ba2b7412286fec67aaff4d4c417f386</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hi &lt;br/&gt;
The Output of R_Trig is active only for 1 cycle so you would Need to do something like this&lt;/p&gt;
&lt;p&gt;FUNCTION_BLOCK FB_Test&lt;br/&gt;
VAR_INPUT&lt;br/&gt;
    xInTrigger  : BOOL;&lt;br/&gt;
END_VAR&lt;br/&gt;
VAR&lt;br/&gt;
    fbRTrig : R_Trig;&lt;br/&gt;
END_VAR&lt;/p&gt;
&lt;p&gt;fbRTrig(clk := xInTrigger);&lt;br/&gt;
IF fbRTrig.Q THEN&lt;br/&gt;
 // the code that Needs to work only on Trigger&lt;br/&gt;
END_IF&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>rising edge not working when declared in other function fb</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/3b0a87d206/?limit=25#2d12" rel="alternate"/><published>2020-02-27T13:54:35.026000Z</published><updated>2020-02-27T13:54:35.026000Z</updated><author><name>Anonymous</name><uri>https://forge.codesys.com/u/*anonymous/</uri></author><id>https://forge.codesys.com2b37c09aca8d2d9f28f4d01056cb95550f3e8189</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;&lt;em&gt;Originally created by:&lt;/em&gt; barkamharikrishna&lt;/p&gt;
&lt;p&gt;Hello all,&lt;br/&gt;
can anyone please help me on this issue.&lt;/p&gt;
&lt;p&gt;I had developed an Fb and it is working fine.&lt;br/&gt;
Some code of FB I Need to run only once . So i am using Function block R_TRIG:&lt;br/&gt;
unfortunately when my R_TRIG Input is false,then R_TRIG output suppose to be false , but it is not Happening .    &lt;/p&gt;
&lt;p&gt;Many thanks in advance&lt;/p&gt;&lt;/div&gt;</summary></entry></feed>