<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent posts to Problem with instanced</title><link href="https://forge.codesys.com/forge/talk/Runtime/thread/b42077f6d5/" rel="alternate"/><link href="https://forge.codesys.com/forge/talk/Runtime/thread/b42077f6d5/feed.atom" rel="self"/><id>https://forge.codesys.com/forge/talk/Runtime/thread/b42077f6d5/</id><updated>2021-12-15T23:33:00.697000Z</updated><subtitle>Recent posts to Problem with instanced</subtitle><entry><title>Problem with instanced</title><link href="https://forge.codesys.com/forge/talk/Runtime/thread/b42077f6d5/?limit=25#dfc6" rel="alternate"/><published>2021-12-15T23:33:00.697000Z</published><updated>2021-12-15T23:33:00.697000Z</updated><author><name>Comingback4u</name><uri>https://forge.codesys.com/u/comingback4u/</uri></author><id>https://forge.codesys.com6cd6a4bf8e5b7198f944c6f3ed554210d777c40b</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Copy_Device_To_USB is a function block and must be declared.  So in your VAR section you would do something like:&lt;/p&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;&lt;span&gt;&lt;/span&gt;&lt;span class="nt"&gt;VAR&lt;/span&gt;
   &lt;span class="nt"&gt;FB_CopyDeviceToUSB&lt;/span&gt;&lt;span class="o"&gt;:&lt;/span&gt;  &lt;span class="nt"&gt;ifmFileUtil&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nc"&gt;Copy_Device_To_USB&lt;/span&gt;&lt;span class="o"&gt;;&lt;/span&gt;
&lt;span class="nt"&gt;END_VAR&lt;/span&gt;

&lt;span class="o"&gt;//&lt;/span&gt;&lt;span class="nt"&gt;Then&lt;/span&gt; &lt;span class="nt"&gt;call&lt;/span&gt; &lt;span class="nt"&gt;FB_CopyDeviceToUSB&lt;/span&gt; &lt;span class="nt"&gt;to&lt;/span&gt; &lt;span class="nt"&gt;access&lt;/span&gt; &lt;span class="nt"&gt;function&lt;/span&gt; &lt;span class="nt"&gt;block&lt;/span&gt;
&lt;span class="nt"&gt;FB_CopyDeviceToUSB&lt;/span&gt;&lt;span class="o"&gt;(.....);&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;


&lt;p&gt;Hope this helps.&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Problem with instanced</title><link href="https://forge.codesys.com/forge/talk/Runtime/thread/b42077f6d5/?limit=25#4d57" rel="alternate"/><published>2021-12-15T10:41:24.126000Z</published><updated>2021-12-15T10:41:24.126000Z</updated><author><name>libi</name><uri>https://forge.codesys.com/u/libi/</uri></author><id>https://forge.codesys.coma34804c76c28aaaf1fc7627917b67102ed70755f</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;I don't understand what codesys want me to do I tried do declare a variable for USB_STORAGE_HANDLER and it's still not working (I don't want it to work with a function block i want that to work in ST)&lt;/p&gt;&lt;/div&gt;</summary></entry></feed>