DT_TO_FILETIME

DT_TO_FILETIME 1:

The function "DT_TO_FILETIME" allows to convert a PLC variable in DATE_AND_TIME format (DT) into the FILETIME format (64bit).

FUNCTION DT_TO_FILETIME : T_FILETIME

T_FILETIME

VAR_INPUT
    DTIN        : DT;
END_VAR

DTIN:: Date and time to read in DATE_AND_TIME  format.

Requirements

Development environment

Target System

PLC libraries to include

TwinCAT v2.9.0 Build > 1030 and higher

TwinCAT v2.10.0 Build > 1232 and higher

PC or CX (x86)

TcUtilities.Lib

( Standard.Lib; TcBase.Lib; TcSystem.Lib are included automatically )

TwinCAT v2.10.0 Build >= 1301

CX (ARM)