<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent posts to Compiler Associating FB calls with DataSource</title><link href="https://forge.codesys.com/forge/talk/Visualization/thread/db0f245a32/" rel="alternate"/><link href="https://forge.codesys.com/forge/talk/Visualization/thread/db0f245a32/feed.atom" rel="self"/><id>https://forge.codesys.com/forge/talk/Visualization/thread/db0f245a32/</id><updated>2020-02-27T18:12:24.263000Z</updated><subtitle>Recent posts to Compiler Associating FB calls with DataSource</subtitle><entry><title>Compiler Associating FB calls with DataSource</title><link href="https://forge.codesys.com/forge/talk/Visualization/thread/db0f245a32/?limit=25#8c42" rel="alternate"/><published>2020-02-27T18:12:24.263000Z</published><updated>2020-02-27T18:12:24.263000Z</updated><author><name>jerry.sorrells</name><uri>https://forge.codesys.com/u/jerry-sorrells/</uri></author><id>https://forge.codesys.com6e55a50de682ae46f7877fb60c8d2bb4987aea5f</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;My project has two devices, a controller and a CODESYS HMI device, that are sharing data via the &lt;strong&gt;DataServer&lt;/strong&gt; object. Both the controller and the HMI target need file access on their respective hardware targets; therefore both need to use the library &lt;strong&gt;File_Access&lt;/strong&gt;. I have no problem accessing and reading files on the controller, but now that I am trying to set up the HMI to create some folders on first power-up, the compiler is associating the use of the function blocks from the &lt;strong&gt;File_Access&lt;/strong&gt; library with the &lt;strong&gt;DataServer&lt;/strong&gt; instead of associating them with the library under &lt;span style="color: underline;"&gt;HMI.Application.Library_Manager&lt;/span&gt;. I have tried every iteration of where to put the library (using &lt;strong&gt;File Access, 3.5.7.0&lt;/strong&gt;): I have deleted it from under both devices and put it in the POU tree only; I have deleted it from the POU tree and placed it in both &lt;span style="color: underline;"&gt;HMI.Application.Library_Manager&lt;/span&gt; and &lt;span style="color: underline;"&gt;Controller.Application.Library_Manager&lt;/span&gt;. Regardless of how it is set up, the association with the &lt;strong&gt;DataServer&lt;/strong&gt; is not avoided. The compiler errors are below along with the relevant code. Any ideas on how to break this association? I am using 3.5 SP9 and I have tried compiler versions 3.5.9.0 and 3.5.9.10.&lt;/p&gt;
&lt;p&gt;&lt;img alt="IMG: Screen Shot 2017" rel="nofollow" src="https://forum.codesys.com//download/file.php?id=3225"/&gt;&lt;/p&gt;
&lt;p&gt;&lt;img alt="IMG: Screen Shot 2017" rel="nofollow" src="https://forum.codesys.com//download/file.php?id=3226"/&gt;&lt;/p&gt;&lt;/div&gt;</summary></entry></feed>