FB_BA_CnvtTiSt

FB_BA_CnvtTiSt 1:

The function block FB_BA_CnvtTiSt can be used to consolidate the different components of a time structure.

FB_BA_CnvtTiSt 2:

The function block does not check for incorrect entries, such as an hour entry of 99. It makes sense to check this in the connected function blocks, which have to check the time structure in any case. The limit values are shown as part of the variable explanations.

VAR_INPUT

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

wYear: The year (1970..2106).

wMonth: The month (1..12).

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

wHour: The hour (0..23).

wMinute: The minutes (0..59).

wSecond s: The seconds (0..59).

wMillisecond: The milliseconds (0..999).

VAR_OUTPUT

stTi      : TIMESTRUCT;

stTi: Output time structure (see TIMESTRUCT)

Requirements

Development environment

Required PLC library

TwinCAT from v3.1.4024.7

Tc3_BA from v1.1.6.0