<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent posts to Code not executed in extended function</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/dee7ccdde0/" rel="alternate"/><link href="https://forge.codesys.com/forge/talk/Engineering/thread/dee7ccdde0/feed.atom" rel="self"/><id>https://forge.codesys.com/forge/talk/Engineering/thread/dee7ccdde0/</id><updated>2020-09-23T09:06:49.339000Z</updated><subtitle>Recent posts to Code not executed in extended function</subtitle><entry><title>Code not executed in extended function</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/dee7ccdde0/?limit=25#b1a0" rel="alternate"/><published>2020-09-23T09:06:49.339000Z</published><updated>2020-09-23T09:06:49.339000Z</updated><author><name>smarmiroli</name><uri>https://forge.codesys.com/u/smarmiroli/</uri></author><id>https://forge.codesys.combd616bded2909f892330148f246650f5d8e8196a</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;ok, so now it works as required&lt;br/&gt;
thank you so much.&lt;/p&gt;
&lt;p&gt;BR&lt;br/&gt;
Stefano Marmiroli&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Code not executed in extended function</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/dee7ccdde0/?limit=25#2e8e" rel="alternate"/><published>2020-09-23T09:06:48.235000Z</published><updated>2020-09-23T09:06:48.235000Z</updated><author><name>smarmiroli</name><uri>https://forge.codesys.com/u/smarmiroli/</uri></author><id>https://forge.codesys.comdb89a70ae4c74d124db3a7144a2fb9bd1664f80c</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;ok, so now it works as required&lt;br/&gt;
thank you so much.&lt;/p&gt;
&lt;p&gt;BR&lt;br/&gt;
Stefano Marmiroli&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Code not executed in extended function</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/dee7ccdde0/?limit=25#4878" rel="alternate"/><published>2020-09-23T03:54:09.924000Z</published><updated>2020-09-23T03:54:09.924000Z</updated><author><name>kislov</name><uri>https://forge.codesys.com/u/kislov/</uri></author><id>https://forge.codesys.comaa5b4e3d4cfc8ec71222ed5ac47d04c6764df814</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hi. Check this:&lt;br/&gt;
&lt;a href="https://help.codesys.com/webapp/_cds_pointer_super;product=codesys;version=3.5.16.0" rel="nofollow"&gt;https://help.codesys.com/webapp/_cds_pointer_super;product=codesys;version=3.5.16.0&lt;/a&gt;&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Code not executed in extended function</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/dee7ccdde0/?limit=25#41ab" rel="alternate"/><published>2020-09-22T16:31:49.103000Z</published><updated>2020-09-22T16:31:49.103000Z</updated><author><name>smarmiroli</name><uri>https://forge.codesys.com/u/smarmiroli/</uri></author><id>https://forge.codesys.comd4796859988c2ed370530a5d267ff0abac994301</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hi,&lt;br/&gt;
I created a structure like this&lt;/p&gt;
&lt;p&gt;FUNCTION_BLOCK FB_Base&lt;br/&gt;
    VAR&lt;br/&gt;
        init : INT := 0;&lt;br/&gt;
    END_VAR&lt;br/&gt;
    init := 1;&lt;br/&gt;
END_FUNCTION_BLOCK ( i've added this line to clarify, of course IDE does not show it)&lt;/p&gt;
&lt;p&gt;FUNCTION_BLOCK FB_BaseEX EXTENDS FB_Base&lt;/p&gt;
&lt;p&gt;END_FUNCTION_BLOCK ( same thing as the analogous line above )&lt;/p&gt;
&lt;p&gt;When a instance of FB_BaseEx is called, the internal variable init remains equal to 0 &lt;br/&gt;
as if the base function code was not executed. is it correct? How can i make the code of the base function also be executed by the child functions?&lt;br/&gt;
BR&lt;br/&gt;
Stefano Marmiroli&lt;/p&gt;&lt;/div&gt;</summary></entry></feed>