Welcome to our new forum
All users of the legacy CODESYS Forums, please create a new account at account.codesys.com. But make sure to use the same E-Mail address as in the old Forum. Then your posts will be matched.
Close
The library "SysCom" internally uses another library, "SysTypes2Interfaces", where some datatypes are defined.
The function "SysComOpen" in "SysCom" is of type "RTS_IEC_HANDLE", which is defined in SysTypes2Interfaces. That's the reason, why the error occurs.
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.
Good luck!
Alfred
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
i export the library SysCom, 3.5.5.0 and install to TwinCAT.
Compiled successfully but when loggin, reported ```
unresolved references <extref>SysComOpen<extref></extref></extref>
```
Hi Edmond!
The library "SysCom" internally uses another library, "SysTypes2Interfaces", where some datatypes are defined.
The function "SysComOpen" in "SysCom" is of type "RTS_IEC_HANDLE", which is defined in SysTypes2Interfaces. That's the reason, why the error occurs.
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.
Good luck!
Alfred
hi Alfred,
thanks.
but it is not working.
i tried both local runtime and on IPC runtime.
i think beckhoff need to use their own Serial port library