F_BA_WeekNDayVal

The function F_BA_WeekNDayVal of the return type U_BA_DateVal fills the subcomponent ST_BA_WeekNDay of the function return U_BA_DateVal using the input variables eWeekday, eWeekOfMonth and eMonth. This defines a day of the week within a month.
Syntax
FUNCTION F_BA_WeekNDayVal : U_BA_DateVal
VAR_INPUT
  eWeekday        : E_BA_Weekday  := E_BA_Weekday.Invalid;
  eWeekOfMonth    : E_BA_Week     := E_BA_Week.Invalid;
  eMonth          : E_BA_Month    := E_BA_Month.Invalid;
END_VAR Inputs
 Inputs
| Name | Type | Description | 
|---|---|---|
| eWeekday | Entry of the day of the week. | |
| eWeekOfMonth | Entry of the week within the month. | |
| eMonth | Entry of the month. | 
Requirements
| Development environment | Required PLC library | 
|---|---|
| TwinCAT 3.1 4024.35 | Tc3_BA2_Common from V2.1.20.0 |