DCTIME64_TO_SYSTEMTIME

DCTIME64_TO_SYSTEMTIME 1:

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

DCTIME64_TO_SYSTEMTIME: TIMESTRUCT

DCTIME64_TO_SYSTEMTIME 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
    syst : TIMESTRUCT
END_VAR

syst := DCTIME64_TO_SYSTEMTIME ( F_GetCurDcTickTime64() )

Voraussetzungen

Entwicklungsumgebung

Zielplattform

Einzubindende SPS- Bibliotheken

TwinCAT v3.1.0

PC oder CX (x86, x64, Arm®)

Tc2_EtherCAT