STRING_TO_SYSTEMTIME

STRING_TO_SYSTEMTIME 1:

The function converts a string into the Windows SYSTEMTIME format.

FUNCTION STRING_TO_SYSTEMTIME: TIMESTRUCT

VAR_INPUT

VAR_INPUT
    in : STRING(23);
END_VAR

in: The string to be converted. The string must have the following format: 'YYYY-MM-DD-hh:mm:ss.xxx'

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)