<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent posts to __NEW vs FB Factory for one-time creation of FB's at start-up</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/2c93b8b8be/" rel="alternate"/><link href="https://forge.codesys.com/forge/talk/Engineering/thread/2c93b8b8be/feed.atom" rel="self"/><id>https://forge.codesys.com/forge/talk/Engineering/thread/2c93b8b8be/</id><updated>2023-01-15T22:04:58.755000Z</updated><subtitle>Recent posts to __NEW vs FB Factory for one-time creation of FB's at start-up</subtitle><entry><title>__NEW vs FB Factory for one-time creation of FB's at start-up</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/2c93b8b8be/?limit=25#05c2" rel="alternate"/><published>2023-01-15T22:04:58.755000Z</published><updated>2023-01-15T22:04:58.755000Z</updated><author><name>scott</name><uri>https://forge.codesys.com/u/scott/</uri></author><id>https://forge.codesys.com80e561e4ddd4f9bb2d9034ec4b103ed5d6c1a8aa</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;I have an applicaton where I want to create function blocks based on configuration files read at start up.  No function blocks will be added or deleted once the application is initialzed.  If the user reconfigures the system, the new configuration would not take effect until a restart of PLC takes place.  Is there any disadvantage to using __NEW to create these function blocks as opposed to the fb factory library to create these function blocks? The Codesys documentation indicates that the main disadvantages of __NEW only occur if the memory allocation size cannot be determined or __NEW and __DELETE are used repeatedly.  Has anyone done something similar?  &lt;/p&gt;&lt;/div&gt;</summary></entry></feed>