F_BA_DateRangeVal

The function F_BA_DateRangeVal of return type U_BA_DateVal uses the input variables nFromYear, eFromMonth, nFromDay, nToYear, eToMonth and nToDay fills the subcomponent ST_BA_DateRange of the function return U_BA_DateVal. This defines a time range.
Syntax
FUNCTION F_BA_DateRangeVal : U_BA_DateVal
VAR_INPUT
nFromYear : UINT(1900 .. 2155);
eFromMonth : E_BA_Month := E_BA_Month.Unspecified;
nFromDay : UINT(1 .. 31);
nToYear : UINT(1900 .. 2155);
eToMonth : E_BA_Month := E_BA_Month.Unspecified;
nToDay : UINT(1 .. 31);
END_VAR
Inputs
Name | Type | Description |
---|---|---|
nFromYear |
UINT |
Starting year of the time range. |
eFromMonth |
Starting month of the time range. | |
nFromDay |
UINT |
Start day of the time range. |
nToYear |
UINT |
End year of the time range. |
eToMonth |
End month of the time range. | |
nToDay |
UINT |
End tag of the time range. |
Requirements
Development environment | Required PLC library |
---|---|
TwinCAT 3.1 4024.35 | Tc3_BA2_Common from V2.1.20.0 |