<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent posts to Automatically call FB declared with FBInstance</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/2db1ec1813/" rel="alternate"/><link href="https://forge.codesys.com/forge/talk/Engineering/thread/2db1ec1813/feed.atom" rel="self"/><id>https://forge.codesys.com/forge/talk/Engineering/thread/2db1ec1813/</id><updated>2020-02-27T14:08:51.407000Z</updated><subtitle>Recent posts to Automatically call FB declared with FBInstance</subtitle><entry><title>Automatically call FB declared with FBInstance</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/2db1ec1813/?limit=25#82b9" rel="alternate"/><published>2020-02-27T14:08:51.407000Z</published><updated>2020-02-27T14:08:51.407000Z</updated><author><name>chris.harlow</name><uri>https://forge.codesys.com/u/chris-harlow/</uri></author><id>https://forge.codesys.com9e65d632ef386d25ca35ac0e85a6a18bd3e5219d</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;I have created a device which has the following tag: &amp;lt;fbinstance basename="$(DeviceName)" fbname="FB1"&amp;gt;&amp;lt;/fbinstance&amp;gt;&lt;/p&gt;
&lt;p&gt;This does create the Function block when added to my project, but I have to call this function block in another program to have the variables update. Is there a tag to call the function block on every scan? &lt;/p&gt;
&lt;p&gt;Alternatively I have also tried:&lt;/p&gt;
&lt;p&gt;&amp;lt;requiredcyclictask priority="0" taskname="Task1" cycletime="t#100ms"&amp;gt;&lt;br/&gt;
         &amp;lt;taskpou&amp;gt;PRG1&amp;lt;/taskpou&amp;gt;&lt;br/&gt;
        &amp;lt;/requiredcyclictask&amp;gt;&lt;/p&gt;
&lt;p&gt;But there is no way to dynamically call "$(Devicename)" in PRG1.&lt;/p&gt;&lt;/div&gt;</summary></entry></feed>