DCTIME64_TO_FILETIME64

DCTIME64_TO_FILETIME64 1:

The function converts a 64-bit "Distributed Clock System Time" variable of type T_DCTIME64 to a 64-bit "Windows File Time" variable of type T_FILETIME64.

FUNCTION DCTIME64_TO_FILETIME64: T_FILETIME64

DCTIME64_TO_FILETIME64 2: Inputs

VAR_INPUT
    in : T_DCTIME64:
END_VAR;

Name

Type

Description

in

T_DCTIME64

The "Distributed Clock System Time" variable to be converted

Sample:

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

dct := F_GetCurDcTickTime64();
ft  := DCTIME64_TO_FILETIME64(dct);

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