<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent posts to Creating, using an external Function.</title><link href="https://forge.codesys.com/forge/talk/Runtime/thread/3b1af968df/" rel="alternate"/><link href="https://forge.codesys.com/forge/talk/Runtime/thread/3b1af968df/feed.atom" rel="self"/><id>https://forge.codesys.com/forge/talk/Runtime/thread/3b1af968df/</id><updated>2025-07-23T04:59:15.292000Z</updated><subtitle>Recent posts to Creating, using an external Function.</subtitle><entry><title>Creating, using an external Function.</title><link href="https://forge.codesys.com/forge/talk/Runtime/thread/3b1af968df/?limit=25#0070" rel="alternate"/><published>2025-07-23T04:59:15.292000Z</published><updated>2025-07-23T04:59:15.292000Z</updated><author><name>nano</name><uri>https://forge.codesys.com/u/nano/</uri></author><id>https://forge.codesys.comce177b719ff40e6178a6214f3bf20701868bc686</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;hi Andrej, thx for your feedback.&lt;/p&gt;
&lt;p&gt;i'm very familiar with creating such components. if you need some further help, just clock on me.&lt;/p&gt;
&lt;p&gt;greetings Nano&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Creating, using an external Function.</title><link href="https://forge.codesys.com/forge/talk/Runtime/thread/3b1af968df/?limit=25#3b64" rel="alternate"/><published>2025-07-17T10:04:02.187000Z</published><updated>2025-07-17T10:04:02.187000Z</updated><author><name>andrej</name><uri>https://forge.codesys.com/u/andrej/</uri></author><id>https://forge.codesys.com62b6203019daa4a5635a03f6ec9aecc5564e70d2</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hi nano,&lt;br/&gt;
... it took some time but finally it works - the make file provided by the SDK takes care of practically everything :)&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Creating, using an external Function.</title><link href="https://forge.codesys.com/forge/talk/Runtime/thread/3b1af968df/?limit=25#7e43" rel="alternate"/><published>2025-05-14T04:04:15.488000Z</published><updated>2025-05-14T04:04:15.488000Z</updated><author><name>nano</name><uri>https://forge.codesys.com/u/nano/</uri></author><id>https://forge.codesys.com1b23593f6df90d19484f8197a37bf14a52d76f42</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;the Answer is easy, you don't reapecting the codesys-behaviour and pre-request on a dll/so like you like to create.&lt;/p&gt;
&lt;p&gt;codesys won't load it about the fact that the dll isn't registered in codesys.&lt;/p&gt;
&lt;p&gt;check this page for more informations:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://content.helpme-codesys.com/en/CODESYS%20Control/_rtsl_extension_extension_sdk.html" rel="nofollow"&gt;https://content.helpme-codesys.com/en/CODESYS%20Control/_rtsl_extension_extension_sdk.html&lt;/a&gt;&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Creating, using an external Function.</title><link href="https://forge.codesys.com/forge/talk/Runtime/thread/3b1af968df/?limit=25#2051" rel="alternate"/><published>2025-05-05T05:23:12.897000Z</published><updated>2025-05-05T05:23:12.897000Z</updated><author><name>andrej</name><uri>https://forge.codesys.com/u/andrej/</uri></author><id>https://forge.codesys.com21001b3ecdbaf3e36c63d47da1957ce33cd48a2f</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hello all,&lt;br/&gt;
could you tell me whether I need an additional license in order for v3x64 to execute the DLL?&lt;/p&gt;
&lt;p&gt;Is there some manual on how to proceed? Other than the rather generic message &lt;em&gt;loading Component failed Lib_XMATH.dll&lt;/em&gt; I have no further hints.&lt;/p&gt;
&lt;p&gt;Many thanks for your feed back.&lt;/p&gt;
&lt;p&gt;*&lt;br/&gt;
PS:&lt;em&gt;&lt;br/&gt;
&lt;/em&gt;I tried a similar experiment (i.e. generating a native dll for windows and having it executed by the Python VM this worked without an issue).*&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Creating, using an external Function.</title><link href="https://forge.codesys.com/forge/talk/Runtime/thread/3b1af968df/?limit=25#00af" rel="alternate"/><published>2025-04-29T14:16:59.353000Z</published><updated>2025-04-29T14:16:59.353000Z</updated><author><name>andrej</name><uri>https://forge.codesys.com/u/andrej/</uri></author><id>https://forge.codesys.come1b5ac7c52a0c52dedb665f2b7f80410eb24a971</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hello all,&lt;br/&gt;
you confirm that it is possible to generate a custom dll, which is called by the library - or do I need to buy an extra license for this? Furthermore, could you tell me where to place the generated dll. During Boot up of WinV3 x64 the dll is not loaded. Thanks a lot.&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Creating, using an external Function.</title><link href="https://forge.codesys.com/forge/talk/Runtime/thread/3b1af968df/?limit=25#9b19" rel="alternate"/><published>2025-04-23T11:50:35.320000Z</published><updated>2025-04-23T11:50:35.320000Z</updated><author><name>andrej</name><uri>https://forge.codesys.com/u/andrej/</uri></author><id>https://forge.codesys.comd36c7b59e72b75d5f61d758cc59a1d6f2eb5d3d2</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hello,&lt;br/&gt;
many thanks for your reply. I checked the logs. It seems that dll is not loaded. However other dll such as the Webserver are loaded. Could you tell me what I need to do such that my dll is loaded.&lt;/p&gt;
&lt;p&gt;Many thanks.&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Creating, using an external Function.</title><link href="https://forge.codesys.com/forge/talk/Runtime/thread/3b1af968df/?limit=25#0cad" rel="alternate"/><published>2025-04-19T02:51:23.223000Z</published><updated>2025-04-19T02:51:23.223000Z</updated><author><name>eschwellinger</name><uri>https://forge.codesys.com/u/eschwellinger/</uri></author><id>https://forge.codesys.com2de7567f89ac13f617d619d24a13ec242c95a251</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;you need the check the plclog if the thos is loaded on startup of the plc.&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Creating, using an external Function.</title><link href="https://forge.codesys.com/forge/talk/Runtime/thread/3b1af968df/?limit=25#a437" rel="alternate"/><published>2025-04-18T15:18:34.952000Z</published><updated>2025-04-18T15:18:34.952000Z</updated><author><name>andrej</name><uri>https://forge.codesys.com/u/andrej/</uri></author><id>https://forge.codesys.com0a858e582f62434fdb88cec46994617a2df26200</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hello all,&lt;br/&gt;
I would like to create a simple which runs directly on &lt;em&gt;Control WinV3 x64 3.5.21.0&lt;/em&gt; &lt;/p&gt;
&lt;p&gt;For this purpose I created a simple dll &lt;em&gt;myAdder.dll&lt;/em&gt; in Cpp&lt;/p&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;&lt;span&gt;&lt;/span&gt;&lt;code&gt;&lt;span class="o"&gt;//&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;MyAdder&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;cpp&lt;/span&gt;
&lt;span class="o"&gt;//&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;cl&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="o"&gt;/&lt;/span&gt;&lt;span class="n"&gt;LD&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="o"&gt;/&lt;/span&gt;&lt;span class="n"&gt;EHsc&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;MyAdder&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;cpp&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="o"&gt;/&lt;/span&gt;&lt;span class="n"&gt;Fe&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="n"&gt;MyAdder&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;dll&lt;/span&gt;
&lt;span class="c1"&gt;#include &amp;lt;windows.h&amp;gt;&lt;/span&gt;
&lt;span class="n"&gt;extern&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"C"&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;__declspec&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;dllexport&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nb nb-Type"&gt;int&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;__cdecl&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;CmpMyAdder_Add&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nb nb-Type"&gt;int&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;a&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nb nb-Type"&gt;int&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;b&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="p"&gt;{&lt;/span&gt;
&lt;span class="w"&gt;    &lt;/span&gt;&lt;span class="k"&gt;return&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;a&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="o"&gt;+&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;b&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;

&lt;p&gt;I added the dll in the respective folder. Furthermore I "registred" the dll in the &lt;em&gt;CODESYSControl.cfg&lt;/em&gt;. However, when I want to use the library I get the error message: Uresolved reference: *'CMPMYADDERADD' *&lt;/p&gt;
&lt;p&gt;Can you give me a hint what step I missed or where I need to declare the dll, such that the dll resp. the reference can be resolved.&lt;/p&gt;
&lt;p&gt;Many thanks and kind regards&lt;/p&gt;&lt;/div&gt;</summary></entry></feed>