FB_BA_ExtTiSt

FB_BA_ExtTiSt 1:

The function block FB_BA_ExtTiSt resolves a time structure into the different components, so that it can be used for time conditions, for example.

VAR_INPUT

stTi      : TIMESTRUCT;

stTi: Input time structure (see TIMESTRUCT)

VAR_OUTPUT

wYear         : WORD;
wMonth        : WORD;
wDayOfWeek    : WORD;
wDay          : WORD;
wHour         : WORD;
wMinute       : WORD;
wSecond       : WORD;
wMilliseconds : WORD;

wYear: The year (1970..2106).

wMonth: The month (1..12).

wDayOfWeek: The day of the week (0(Sun)..0(Sat)).

wDay: The day of the month (1..31).

wHour: The hour (0..23).

wMinute: The minutes (0..59).

wSecond: The seconds (0..59).

wMilliseconds: The milliseconds (0..999).

Requirements

Development environment

Required PLC library

TwinCAT from v3.1.4024.7

Tc3_BA from v1.1.6.0