DCTIME64_TO_SYSTEMTIME

The function converts a 64-bit distributed clock system time variable of type T_DCTIME64 to a structured Windows system time variable of type TIMESTRUCT.
DCTIME64_TO_SYSTEMTIME: TIMESTRUCT
Inputs
VAR_INPUT
in : T_DCTIME64;
END_VARName | Type | Description |
|---|---|---|
in | T_DCTIME64 | The "Distributed Clock System Time" variable to be converted |
Sample:
PROGRAM P_TEST
VAR
syst : TIMESTRUCT;
END_VAR
syst := DCTIME64_TO_SYSTEMTIME ( F_GetCurDcTickTime64() );Prerequisites
Development environment | Target platform | PLC libraries to include |
|---|---|---|
TwinCAT v3.1.0 | PC or CX (x86, x64, Arm®) | Tc2_EtherCAT |