Your cart is currently empty!
Applicable Model(s)
cMT Series
cMT X Series
Title
Removing libraries incompatible with Weintek Built-in CODESYS runtime
Date
4/24/2025
Rev
Rev. 00
P/N
0907-5156
Summary
The Weintek Built-in CODESYS device is compatible with many built-in libraries. However, certain libraries requiring OS support are incompatible with the device runtime. Unsupported library instances often cause an “Unresolved reference” error when downloading or logging in to a CODESYS program on the cMT’s CODESYS runtime.
NOTE: Some unsupported libraries can be added to the Library Manager and for the CODESYS project to be compiled without error. However, unsupported function blocks will not be operational within POUs when downloading or logging into the cMT’s CODESYS runtime.
Solution
To resolve these types of errors, the incompatible library will need to be identified and removed. Subsequently, any logic implementing library Functions, Function Blocks, etc., will need to be removed.
NOTE: It’s suggested that users verify logic/functionality in a CODESYS program before making changes or using any external libraries in a production environment
Identifying the incompatible library
1.
Note any errors in CODESYS IDE when connecting with or after downloading the project the cMT device.


2.
In this case, the call to the function CIFX_GetBusActivationBeforeReset is what is causing the error. This function is provided by the library CmpHilscherCIFX, meaning that the library must be removed.
Removing the incompatible library
3.
In the Devices tab under the Weintek Built-in CODESYS device, double-click on the Library Manager option under Application.

4.
In the Library Manager pane that opens, right-click the incompatible library. In this case, CmpHilscherCIFX. Select Delete from the option list to remove it.

5.
It will be necessary to modify the CODESYS project’s code by removing any references to Functions, Function Blocks, etc., provided by the removed library. Then, the CODESYS project can be downloaded again, and it will now be possible to log into the cMT series device from CODESYS IDE.