<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent posts to problem with an extended function block. Output always set to TRUE</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/97c5a093fb/" rel="alternate"/><link href="https://forge.codesys.com/forge/talk/Engineering/thread/97c5a093fb/feed.atom" rel="self"/><id>https://forge.codesys.com/forge/talk/Engineering/thread/97c5a093fb/</id><updated>2020-11-10T17:31:36.303000Z</updated><subtitle>Recent posts to problem with an extended function block. Output always set to TRUE</subtitle><entry><title>problem with an extended function block. Output always set to TRUE</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/97c5a093fb/?limit=25#8352" rel="alternate"/><published>2020-11-10T17:31:36.303000Z</published><updated>2020-11-10T17:31:36.303000Z</updated><author><name>Morberis</name><uri>https://forge.codesys.com/u/morberis/</uri></author><id>https://forge.codesys.com0948b997cf113e6b76be79cab0c6a97113a28a7e</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;It wasn't your intention but thanks for sharing that paper. Reading it now and it looks to be very informative and great for exactly what you're using it for as well.&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>problem with an extended function block. Output always set to TRUE</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/97c5a093fb/?limit=25#8396" rel="alternate"/><published>2020-11-09T22:30:45.170000Z</published><updated>2020-11-09T22:30:45.170000Z</updated><author><name>robi</name><uri>https://forge.codesys.com/u/robi/</uri></author><id>https://forge.codesys.com5d8e025ea2a832ad5955796bf8e3924051e2c53d</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Ohhhhh, I see..., I wanted to evaluate if the METH_Run’s boolean output was se to true, but as I am calling this method I am therefore setting its output to true (there is no condition implemented in the method’s logic to prevent it to set bRoll to true)...Instead I probably should’ve used a property for that..&lt;br/&gt;
Thanks for the hint i-Campbell!! :)&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>problem with an extended function block. Output always set to TRUE</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/97c5a093fb/?limit=25#012c" rel="alternate"/><published>2020-11-09T22:18:03.661000Z</published><updated>2020-11-09T22:18:03.661000Z</updated><author><name>i-campbell</name><uri>https://forge.codesys.com/u/i-campbell/</uri></author><id>https://forge.codesys.comcb4ad512f09b8e70900ae76348defb6d94d9eb5e</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;blockquote&gt;
&lt;p&gt;I don't call the method METH_RUN&lt;br/&gt;
Yes you do.&lt;/p&gt;
&lt;/blockquote&gt;&lt;/div&gt;</summary></entry><entry><title>problem with an extended function block. Output always set to TRUE</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/97c5a093fb/?limit=25#6635" rel="alternate"/><published>2020-11-09T21:34:42.170000Z</published><updated>2020-11-09T21:34:42.170000Z</updated><author><name>robi</name><uri>https://forge.codesys.com/u/robi/</uri></author><id>https://forge.codesys.com60ac44bf35277a23ff1649f76b8200bb9f3dff15</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hello everybody,&lt;br/&gt;
I'm trying to recreate these OOP examples for my own learning purposes:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://www.google.com/url?sa=t&amp;amp;rct=j&amp;amp;q=&amp;amp;esrc=s&amp;amp;source=web&amp;amp;cd=&amp;amp;ved=2ahUKEwiBpPbQsfbsAhUGjhQKHZUsA4wQFjABegQIBBAC&amp;amp;url=https%3A%2F%2Fsigarra.up.pt%2Ffeup%2Fpt%2Fpub_geral.show_file%3Fpi_doc_id%3D239371&amp;amp;usg=AOvVaw3w5jJSKAGyH2oafWIOdo2F" rel="nofollow"&gt;https://www.google.com/url?sa=t&amp;amp;rct=j&amp;amp;q=&amp;amp;esrc=s&amp;amp;source=web&amp;amp;cd=&amp;amp;ved=2ahUKEwiBpPbQsfbsAhUGjhQKHZUsA4wQFjABegQIBBAC&amp;amp;url=https%3A%2F%2Fsigarra.up.pt%2Ffeup%2Fpt%2Fpub_geral.show_file%3Fpi_doc_id%3D239371&amp;amp;usg=AOvVaw3w5jJSKAGyH2oafWIOdo2F&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;I'm stuck at the third scenario (Conveyor with FIFO): An object in the MAIN_PRG (a conveyor) instantiated from a function block. This function block is an extension of another parent block and it contains a third encapsulated function block (a FIFO).&lt;/p&gt;
&lt;p&gt;The thing is: an output (bRoll)of the parent function block is permanently set to TRUE. This output is normally set to TRUE by means of a method METH_RUN() whenever a condition is satisfied (bStartButton). The methods and code implementation in the parent function block are called through SUPER^.() in the child function block.&lt;br/&gt;
I can't see why the bRoll output is permanently set to TRUE because I don't call the method METH_RUN()...what am I doing wrong?&lt;/p&gt;
&lt;p&gt;The other two scenarios (Conveyor 1 and 2) work fine...but I don't see why the third doesn't&lt;/p&gt;
&lt;p&gt;Thanks for your help,&lt;br/&gt;
Rob&lt;/p&gt;&lt;/div&gt;</summary></entry></feed>