Get System Date and Time

3 months 3 weeks ago #450 by Daniel De Renzy

As mentioned in my previous posts I am using Logicad3 with a Revolution Pi Core 3 module to control a system and log each event as it occurs.

For each event log I would like to be able to capture the event start, and event finish, dates and times (that is read and capture the system Date and Time at the start of each event and the end of each event).

Is there a function with Logicad3 that can do this easily and automatically?

I have found the RTC block within logicad3, however this requires a user to declare the current Date and Time when the RTC clock begins. I can do this however I am aware that the start Date and Time will have to be updated every time that the system loses power/ reboots which is a bit inconvenient.

I have seen in other ST programs a function called GET_TIME (or similar) that achieves what I am after.

Any help/ guidance would be greatly appreciated.

Please Log in or Create an account to join the conversation.

1 month 3 weeks ago #472 by Walter Zögernitz
Hello & thank you for posting this topic!

Raspberry Pi, RevPi, has no "BOIS battery". Because of that, you need to synchronize the systems date and time with an application needs to be installed on the system. Otherwise the system time will drift up to some minutes compared to the DCF77 time in one week.
For logging the values to the file system please see:

kind regards

Please Log in or Create an account to join the conversation.



Europaplatz 7/1,
3100 St. Pölten



Postfach 1306,
40738 Langenfeld
© 1987 - 2019 logi.cals GmbH