SYSTEMTIME_TO_FILETIME

SYSTEMTIME_TO_FILETIME 1:

The function can be used to convert the Windows system time structure into the Filetime format. The day of the week wDayOfWeek of the system time variable is ignored. The system time year must be greater than 1601 and less than 30827.

FUNCTION SYSTEMTIME_TO_FILETIME: T_FILETIME

VAR_INPUT

VAR_INPUT
    systemTime : TIMESTRUCT;
END_VAR

systemTime: The structure with the Windows system time requiring conversion (type: TIMESTRUCT).

Return parameter

Description

0

Error, wrong system time parameter value.

> 0

No error. File time.

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)