FILETIME64_TO_DCTIME64

FILETIME64_TO_DCTIME64 1:

The function converts a 64-bit "Windows File Time" variable of type T_FILETIME64 to a 64-bit "Distributed Clock System Time" variable of type T_DCTIME64. In the event of a conversion error the function returns the value zero.

FUNCTION FILETIME64_TO_DCTIME64: T_DCTIME64

FILETIME64_TO_DCTIME64 2: Inputs

VAR_INPUT
    in : T_FILETIME64;
END_VAR

Name

Type

Description

in

T_FILETIME64

The "Windows File Time" variable to be converted

Sample:

PROGRAM P_TEST
VAR
    ft : T_FILETIME64;
    dct : T_DCTIME64;
END_VAR

ft := F_GetSystemTime();
dct := FILETIME64_TO_DCTIME64(ft);

Requirements

Development environment

Target platform

PLC libraries to include

TwinCAT v3.1.4024

PC or CX (x86, x64, ARM)

Tc2_EtherCAT >= 3.3.16.0