I have a actual CodeSys project with version V3.5 SP16 Patch 1 32 Bit and as a device "CODESYS Control for Raspberry Pi SL" version 3.5.16.10. After I added a Library and login I get the error messages: [FATAL ERROR] Unresolved reference: 'F_CPUCOUNTER'
and it is not possible to login.
In the Log of the device I get two error messages:
from the component CM "Failed to resolve F_CPUCOUNTER"
from the CmpApp "Could not link external function F_CPUCOUNTER"
I tested several things to find a solution but I haven't any idea who to solve it.
I tested it also in CodeSys simulation and in this mode it is working fine but I didn't know the difference there.
Any ideas?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I have a actual CodeSys project with version V3.5 SP16 Patch 1 32 Bit and as a device "CODESYS Control for Raspberry Pi SL" version 3.5.16.10. After I added a Library and login I get the error messages:
[FATAL ERROR] Unresolved reference: 'F_CPUCOUNTER'
and it is not possible to login.
In the Log of the device I get two error messages:
from the component CM "Failed to resolve F_CPUCOUNTER"
from the CmpApp "Could not link external function F_CPUCOUNTER"
I tested several things to find a solution but I haven't any idea who to solve it.
I tested it also in CodeSys simulation and in this mode it is working fine but I didn't know the difference there.
Any ideas?
Which library did you add?
Last edit: eschwellinger 2020-09-16
I add the Beckhoff TC2_IoFunctions.Lib which include other Beckhoff Libs see attachment.
This does mit work for Raspberry PI...this function is external implemented in the Twincat runtime.
Last edit: eschwellinger 2020-09-16
Is it not possible to simulate the function or set it to a fix value I think I didn't need it? Only that it is possible to login.
Last edit: alexgbb 2020-09-16
This you need to do it in the Beckhoff library...
Last edit: eschwellinger 2020-09-17
Ok, thanks for your help. I will contact Beckhoff and hope that they will find a solution.