<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent posts to Why do I get C0434:  Function block AbstractFunctionBlock is ABSTRACT and cannot be instantiated for a Reference?</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/2d12dfd265/" rel="alternate"/><link href="https://forge.codesys.com/forge/talk/Engineering/thread/2d12dfd265/feed.atom" rel="self"/><id>https://forge.codesys.com/forge/talk/Engineering/thread/2d12dfd265/</id><updated>2022-08-14T19:12:04.091000Z</updated><subtitle>Recent posts to Why do I get C0434:  Function block AbstractFunctionBlock is ABSTRACT and cannot be instantiated for a Reference?</subtitle><entry><title>Why do I get C0434:  Function block AbstractFunctionBlock is ABSTRACT and cannot be instantiated for a Reference?</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/2d12dfd265/?limit=250#d2c1" rel="alternate"/><published>2022-08-14T19:12:04.091000Z</published><updated>2022-08-14T19:12:04.091000Z</updated><author><name>h-hermsen</name><uri>https://forge.codesys.com/u/hermsen/</uri></author><id>https://forge.codesys.com84da242d0af6beb60b4a07834f236fa88f38dc76</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;please read up on ABSTRACT in the help and you will understand what you are doing is incorrect... as ABSTRACT means you must EXTEND the ABSTRACT FB before you may use it.&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Why do I get C0434:  Function block AbstractFunctionBlock is ABSTRACT and cannot be instantiated for a Reference?</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/2d12dfd265/?limit=25#9a79" rel="alternate"/><published>2022-08-14T18:23:59.291000Z</published><updated>2022-08-14T18:23:59.291000Z</updated><author><name>thecolonel26</name><uri>https://forge.codesys.com/u/thecolonel26/</uri></author><id>https://forge.codesys.comb1c32182559115a7bebfcafe5dc28a03d7a0643d</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="err"&gt;VAR_INPUT&lt;/span&gt;
&lt;span class="err"&gt;    RefToFB : REFERENCE TO ARRAY [0..49] OF AbstractFunctionBlock;&lt;/span&gt;
&lt;span class="err"&gt;END_VAR&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;


&lt;p&gt;Error&lt;/p&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;&lt;span&gt;&lt;/span&gt;&lt;span class="n"&gt;C0434&lt;/span&gt;&lt;span class="o"&gt;:&lt;/span&gt;  &lt;span class="n"&gt;Function&lt;/span&gt; &lt;span class="n"&gt;block&lt;/span&gt; &lt;span class="n"&gt;AbstractFunctionBlock&lt;/span&gt; &lt;span class="k"&gt;is&lt;/span&gt; &lt;span class="n"&gt;ABSTRACT&lt;/span&gt; &lt;span class="n"&gt;and&lt;/span&gt; &lt;span class="n"&gt;cannot&lt;/span&gt; &lt;span class="n"&gt;be&lt;/span&gt; &lt;span class="n"&gt;instantiated&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;


&lt;p&gt;That is not the actual instance it is just a reference delaration, so why am I getting that error?&lt;/p&gt;
&lt;p&gt;I want to pass references to Derived types, only this object only needs access to things that are in the base function block.&lt;/p&gt;&lt;/div&gt;</summary></entry></feed>