XFC_ExtendDcTime

XFC_ExtendDcTime 1:

The function XFC_ExtendDcTime extends a 32-bit time stamp to 64 bit.

A prerequisite for the extension to a complete time stamp is that the 32-bit time stamp is valid for the current time range. It is not possible to guarantee error-free extension of a time stamp that applies more than approx. +/- 2 seconds before or after the current time.

Inputs

VAR_INPUT
    TimeStamp32 : T_DCTIME32;
END_VAR

TimeStamp32

Distributed clock system time.
TimeStamp32 contains the lower 32 bits of the complete DcTime and covers a time range of +/- 2 seconds around the current time.

Return value

FUNCTION XFCF_ExtendDcTime : T_DCTIME

Return value of the function

Complete 64-bit distributed clock system time.