TIMESTRUCT
TYPE TIMESTRUCT:
STRUCT
wYear : WORD;
wMonth : WORD;
wDayOfWeek : WORD;
wDay : WORD;
wHour : WORD;
wMinute : WORD;
wSecond : WORD;
wMilliseconds: WORD;
END_STRUCT
END_TYPE
wYear : Specifies the year: 1970 ~ 2106;
wMonth : Specifies the month: 1 ~ 12 (January = 1, February = 2 and so on);
wDayOfWeek : Specifies the day of the week: 0 ~ 6 (Sunday = 0, Monday = 1 and so on );
wDay : Specifies the day of the month: 1 ~ 31;
wHour : Specifies the hour: 0 ~ 23;
wMinute : Specifies the minute: 0 ~ 59;
wSecond : Specifies the second: 0 ~ 59;
wMilliseconds : Specifies the millisecond: 0 ~ 999;
Requirements
Development environment | Target system type | PLC libraries to include |
---|---|---|
TwinCAT v2.7.0 | PC or CX (x86) | Standard.Lib; PLCSystem.Lib; TcPLCAds.Lib; PLCHelper.Lib; TcPlcUtilities.Lib |
TwinCAT v2.8.0 and above | PC or CX (x86) | TcUtilities.Lib ( Standard.Lib; TcBase.Lib; TcSystem.Lib are included automatically ) |
TwinCAT v2.10.0 Build >= 1301 | CX (ARM) |