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 188.8.131.52. 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.
Which library did you add?
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.
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.
This you need to do it in the Beckhoff library...
Ok, thanks for your help. I will contact Beckhoff and hope that they will find a solution.
Log in to post a comment.