Reading the time out of a WAGO CC100 in Codesys

Hello everyone,

I want to read the time out of my CC100 in Codesys. I tried several Function-blocks (SysTimeRtcGet, SysTimeGet, …). Does someone know what I could do wrong or what I should try next?

Thank you very much

Noah

Hello Noah,

You can use the following functions from the WagoAppTime library:

  • FuGetLocalDateAndTime to retrieve the local date and time

  • FuGetDateAndTime to retrieve the UTC date and time

  • FuGetSystemTime to retrieve the system time

Best regards,
Paul

Hello Paul

Thank you for the fast response.

I now did a function block and named it FuGetLocalDateAndTime. at the right side I connected a variable in the format DT. But there is a problem report that FuGetLocalDateAndTime is not defined. Do you know what the problem is?

again Thankyou so much

Best regards

Noah

Screenshot 2026-02-03 161118

Did you insert WagoAppTime in library manager? FuGetLocalDateandTime is a Function, not a function block.

Thankyou very much now it works. I didn’t know that it was a function and not a function block. But I have another little problem: I now have a variable in DATE_AND_TIME Format. My goal is to set a flag everyday at 00:00 o clock. How can I do this?

Hello Noah,

You can detect when the day changes and then set your flag accordingly.

Below, you will find a small example written in Structured Text (ST).

Best regards,
Paul