DCTIME64_TO_FILETIME

DCTIME64_TO_FILETIME 1:

Die Funktion konvertiert eine 64-Bit-„Distributed Clock System Time“-Variable vom Typ T_DCTIME64 in eine 64-Bit-„Windows File Time“-Variable vom Typ T_FILETIME.

FUNCTION DCTIME64_TO_FILETIME: T_FILETIME

DCTIME64_TO_FILETIME 2: Eingänge

VAR_INPUT
    in : T_DCTIME64:
END_VAR;

Name

Typ

Beschreibung

in

T_DCTIME64

Die zu konvertierende „Distributed Clock System Time”-Variable

Beispiel:

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

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

Voraussetzungen

Entwicklungsumgebung

Zielplattform

Einzubindende SPS- Bibliotheken

TwinCAT v3.1.0

PC oder CX (x86, x64, ARM)

Tc2_EtherCAT