DCTIME_TO_FILETIME
This function converts the 64 bit "Distributed Clock System Time" variable to 64 bit "Windows File Time" variable.
FUNCTION DCTIME_TO_FILETIME: T_FILETIME
VAR_INPUT
in : T_DCTIME;
END_VAR
in: "Distributed Clock System Time" variable to be converted.
Example:
PROGRAM P_TEST
VAR
ft : T_FILETIME;
dct : T_DCTIME;
END_VAR
dct := F_GetCurDcTickTime();
ft := DCTIME_TO_FILETIME(dct);
Requirements
Development environment | Target system type | PLC libraries to be linked |
---|---|---|
TwinCAT v2.10.0 Build >= 1324 or higher | PC or CX (x86, ARM) | TcEtherCAT.Lib |