DT_TO_FILETIME

DT_TO_FILETIME 1:

The function "DT_TO_FILETIME" can be used to convert a PLC variable in DATE_AND_TIME format (DT) to FILETIME format (64 bit).

FUNCTION DT_TO_FILETIME: T_FILETIME

VAR_INPUT

VAR_INPUT
    DTIN  : DT;
END_VAR

DTIN: The date and time to be converted, in DATE_AND_TIME format.

Requirements

Development environment

Target platform

PLC libraries to be integrated (category group)

TwinCAT v3.1.0

PC or CX (x86, x64, ARM)

Tc2_Utilities (System)