The Library SysLibRtc.libΒΆ

This library contains functions for accessing the realtime clock of the local system. If the target system is supporting the functionality, the realtime clock can be read and set; additionally the current hour display mode as well as the battery can be retrieved. The execution is synchronous.

Note

In this context regard the RTC function, which is part of the IEC 61131-3 editor standard library and which returns the running date and time referring to a given start time.

RTC is not a real realtime clock function because the start time must be set explicitly. But using RTC will save system operating time. Think about setting the start time for RTC with the aid of the SysRtcGetTime function.