DCTIME64_TO_SYSTEMTIME

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
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 |