STRING_TO_DCTIME

STRING_TO_DCTIME 1:

This function converts a string to a "Distributed Clock System Time" variable.

FUNCTION STRING_TO_DCTIME: T_DCTIME

T_DCTIME

VAR_INPUT
    in : STRING(29);
END_VAR

in: The string format is: 'YYYY-MM-DD-hh:mm:ss.nnnnnnnnn'

Example:

See Description of: F_GetCurDcTickTime.

Requirements

Development environment

Target system type

PLC libraries to include

TwinCAT v2.10.0 Build > 1310 oder höher

PC or CX (x86, ARM)

TcEtherCAT.Lib
( Standard.Lib; TcBase.Lib; TcSystem.Lib, TcUtilities.Lib are included automatically )