Function to get Date and time

On this day I wrote all the function to get correct date and time to PLC IDE. I use C++ just to set-get the RTC hardware and NPT.

I can not post the projects due to space limitations on the forum. If someone are interested please give me some public space to upload.
All work: Time zone, European DST, Week Day, NTP.

Oscat Library not work because on Logic Lab there are not all date conversion, like codesys.

You could to create a GitHub repo and put all your work ( code, instructions, wiring diagram) there

2 Likes

Nice Idea, feel free to commit change.