Infosys在阅读器中打开 / AI 翻译

PLC Libraries for PC based systems · 0 次阅读

STRING_TO_SYSTEMTIME

 

STRING_TO_SYSTEMTIME 1:

The function converts string to Windows system time struct.

FUNCTION STRING_TO_SYSTEMTIME: TIMESTRUCT

TIMESTRUCT

VAR_INPUT

VAR_INPUT
    in : STRING(23);
END_VAR

in: The string format is: YYYY-MM-DD-hh:mm:ss.xxx, where:

  • YYYY: Year (1601.. 9999);
  • MM: Month (01..12);
  • DD: Day (01..31);
  • hh: Hour (00..23);
  • mm: Minute (00..59);
  • ss: Second (00..59);
  • xxx: Millisecond (000..999);

Requirements

Development environment

Target system type

PLC libraries to include

TwinCAT v2.10.0 Build >= 1310 or higher

PC or CX (x86, ARM)

TcUtilities.Lib