F_BA_DateVal

The function F_BA_DateVal of the return type U_BA_DateVal fills the subcomponent ST_BA_Date of the function return U_BA_DateVal using the input variables nYear, eMonth and nDay. This defines a date.
Syntax
FUNCTION F_BA_DateVal : U_BA_DateVal
VAR_INPUT
  nYear    : UINT(1900 .. 2155);
  eMonth    : E_BA_Month := E_BA_Month.Unspecified;
  nDay    : UINT(1 .. 31);
END_VAR Inputs
 Inputs
| Name | Type | Description | 
|---|---|---|
| nYear | UINT | Entry of the year. | 
| eMonth | Entry of the month. | |
| nDay | UINT | Entry of the day. | 
Requirements
| Development environment | Required PLC library | 
|---|---|
| TwinCAT 3.1 4024.35 | Tc3_BA2_Common from V2.1.20.0 |