Hello. I’ve also encountered this issue. Apparently, changes to the PersistentVars list cause this error (cleanup is required), and the cleanup leads to the list being reinitialized because the list has been modified. Very funny.
The compilation problem lies indirectly in the Wago library “WagoSysKbusServices”. This library is automatically included in the project when at least one configurable Kbus card is used (e.g., 750-451, 464, 649, 471, 496, etc.).
Here is an example project (everything is on the image, the important thing is that card 750-463 is inserted).
To trigger the error: simply create a copy of the function (fMy_1, using ctrl-c/ctrl-v, no code call is necessary, strange, normally such a code change does not require a download) and try to log in with “online-change”…
C:\ProgramData\CODESYS\Devices\4096\1006 1209\6.4.5.11\ - this is where “device.xml” for 750-8212 is located. With previous Wago Kbus libraries, there is no compilation error in such cases:
It would be great if Wago could provide a partial solution by adjusting the conversions in Kbus libraries to fix this bug in Codesys. Furthermore, the changes made in the Kbus libraries (in FW30) that cause this CodesysSP21 incompatibility are suitable for 64-bit systems, which is not the case for PFC200.
Best regards
Dennis
