<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent posts to Code in FB_Init or with call_after_init not work</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/721f143a24/" rel="alternate"/><link href="https://forge.codesys.com/forge/talk/Engineering/thread/721f143a24/feed.atom" rel="self"/><id>https://forge.codesys.com/forge/talk/Engineering/thread/721f143a24/</id><updated>2023-06-05T12:11:30.352000Z</updated><subtitle>Recent posts to Code in FB_Init or with call_after_init not work</subtitle><entry><title>Code in FB_Init or with call_after_init not work</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/721f143a24/?limit=25#71a9" rel="alternate"/><published>2023-06-05T12:11:30.352000Z</published><updated>2023-06-05T12:11:30.352000Z</updated><author><name>uspenskiyan</name><uri>https://forge.codesys.com/u/uspenskiyan/</uri></author><id>https://forge.codesys.comaf4cbb50c3e32ead5c4720244108bd60621b1dca</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;I need to perform some actions when creating an FB instance (pass a reference to the created instance to another FB - something like Dependency Injection). I found FB_Init and {attribute 'call_after_init'}, but in both cases, the added code when creating the FB (declared in the visualization var and created, as I understand it, along with it) is not executed. Why?&lt;/p&gt;&lt;/div&gt;</summary></entry></feed>