Hello,
We have observed that if you add the WagoAppDatalogger library to projects that have an event defined in the task configuration, the event no longer works or generates error messages.
We use the PrepareStart event to set a start flag to TRUE in the generated start function, which previously worked perfectly. However, simply adding the library now causes errors with the event handler.
" Generating code…
[ERROR] waage_v3521SP5_2026-08_07_2026-08-14T09-28-09: Task configuration [Device: SPS Logic: Application](System Events: PrepareStart Event): C0035: Expected program name, function, or function block instance at position of ‘start’
Translation completed – 1 error, 3 warnings: No download possible "
Codesys 3.5.21.SP5 on PFC300 FW30
It is now only possible to generate error-free code with the included library if you delete the entries in the event handler.
Best regards, Thomas
Addendum:
Working workaround:
Delete the entries in the event handler and the function.
Add the WagoAppDatalogger library.
Recreate the entries in the event handler and the function.