F_BA_WeekNDayVal

F_BA_WeekNDayVal 1:

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

F_BA_WeekNDayVal 2: Inputs

Name

Type

Description

eWeekday

E_BA_Weekday

Entry of the day of the week.

eWeekOfMonth

E_BA_Week

Entry of the week within the month.

eMonth

E_BA_Month

Entry of the month.

Requirements

Development environment

Required PLC library

TwinCAT 3.1 4024.35

Tc3_BA2_Common from V2.1.20.0