This function returns RTC time in seconds in UNIX format (time expired in seconds since January 1, 1970 at 00:00 UTC).
To see the general representation in IL or ST language, refer to the chapter Function and Function Block Representation.
The following table describes the I/O variable:
Output
Type
Comment
GetRtc
DINT
RTC in seconds in UNIX format.
The following example describes how to get the RTC value:
VAR MyRTC : DINT := 0; END_VAR
MyRTC := GetRtc();