U_BA_DateVal
The data type UNION represents a date value, which can have different forms (Date, Range, WeekNDay).
The type of the value is specified by choice enum (E_BA_DateValChoice) in the context (e.g. ST_BA_CalendarEntry or ST_BA_ClassValue).
All other elements start at the same address in the memory area and are also written to.
Their content, however, is then usually not meaningful.
Syntax
TYPE U_BA_DateVal :
UNION
stDate : ST_BA_Date;
stDateRange : ST_BA_DateRange;
stWeekDay : ST_BA_WeekDay;
END_UNION
END_TYPE
Name | Type | Description |
---|---|---|
stDate | Input as date | |
stDateRange | Input as date range | |
stWeekDay | Input as weekday |
Requirements
Development environment | Required PLC library |
---|---|
TwinCAT 3.1 4024.35 | Tc3_BA2_Common from V2.1.20.0 |