<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent posts to Can I use SysCom lib from Codesys in TwinCAT</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/d6847fc5e8/" rel="alternate"/><link href="https://forge.codesys.com/forge/talk/Engineering/thread/d6847fc5e8/feed.atom" rel="self"/><id>https://forge.codesys.com/forge/talk/Engineering/thread/d6847fc5e8/</id><updated>2020-02-27T14:12:27.405000Z</updated><subtitle>Recent posts to Can I use SysCom lib from Codesys in TwinCAT</subtitle><entry><title>Can I use SysCom lib from Codesys in TwinCAT</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/d6847fc5e8/?limit=25#ab46" rel="alternate"/><published>2020-02-27T14:12:27.405000Z</published><updated>2020-02-27T14:12:27.405000Z</updated><author><name>edmond</name><uri>https://forge.codesys.com/u/edmond/</uri></author><id>https://forge.codesys.com5af460a95e7cf4eb85102accb9511c28eff48872</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;hi Alfred,&lt;/p&gt;
&lt;p&gt;thanks. &lt;br/&gt;
but it is not working.&lt;br/&gt;
i tried both local runtime and on IPC runtime.&lt;/p&gt;
&lt;p&gt;i think beckhoff need to use their own Serial port library&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Can I use SysCom lib from Codesys in TwinCAT</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/d6847fc5e8/?limit=25#59f0" rel="alternate"/><published>2020-02-27T14:12:27.018000Z</published><updated>2020-02-27T14:12:27.018000Z</updated><author><name>alwoso</name><uri>https://forge.codesys.com/u/alwoso/</uri></author><id>https://forge.codesys.com714e60f86d73d917599ee9a510acb05e7e14341d</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hi Edmond!&lt;/p&gt;
&lt;p&gt;The library "SysCom" internally uses another library, "SysTypes2Interfaces", where some datatypes are defined. &lt;/p&gt;
&lt;p&gt;The function "SysComOpen" in "SysCom" is of type "RTS_IEC_HANDLE", which is defined in SysTypes2Interfaces. That's the reason, why the error occurs.&lt;br/&gt;
So you will have to export the Codesys Library "SysTypes2Interfaces" into TwinCat, too, or you have to build your own library with that name and define the needed datatypes there.&lt;/p&gt;
&lt;p&gt;Good luck!&lt;/p&gt;
&lt;p&gt;Alfred&lt;/p&gt;
&lt;p&gt;&lt;img alt="IMG: Syscom.png" rel="nofollow" src="https://forum.codesys.com//download/file.php?id=4032"/&gt;&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Can I use SysCom lib from Codesys in TwinCAT</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/d6847fc5e8/?limit=25#c9cd" rel="alternate"/><published>2020-02-27T14:12:25.831000Z</published><updated>2020-02-27T14:12:25.831000Z</updated><author><name>edmond</name><uri>https://forge.codesys.com/u/edmond/</uri></author><id>https://forge.codesys.com83ee98b4c8422c1e75a25cb21b445b67f27c0a5a</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;i export the library SysCom, 3.5.5.0 and install to TwinCAT.&lt;br/&gt;
Compiled successfully but when loggin, reported ```&lt;/p&gt;
&lt;p&gt;unresolved references &amp;lt;extref&amp;gt;SysComOpen&amp;lt;extref&amp;gt;&amp;lt;/extref&amp;gt;&amp;lt;/extref&amp;gt;&lt;/p&gt;
&lt;p&gt;```&lt;/p&gt;&lt;/div&gt;</summary></entry></feed>