AcsiCalendarTime
Initializes the data elements of the structure: ST_AcsiCalendarTime.
Namespace: Tc3_Acsi
Library: Tc3_Acsi (Tc3_Acsi.compiled-library)
FUNCTION AcsiCalendarTime : ST_AcsiCalendarTime
VAR_INPUT
occ : WORD;
occType : E_AcsiOccType;
occPer : E_AcsiOccPer;
weekDay : E_AcsiWeekDay;
month : E_AcsiMonth;
day : BYTE;
hr : BYTE;
mn : BYTE;
END_VAR
Inputs
Name | Type | Description |
---|---|---|
occ | WORD | Data element "occ" to be set. |
occType | Data element "occType" to be set. | |
occPer | Data element "occPer" to be set. | |
weekDay | Data element "weekDay" to be set. | |
month | Data element "month" to be set. | |
day | BYTE | Data element "day" to be set. |
hr | BYTE | Data element "hr" to be set. |
mn | BYTE | Data element "mn" to be set. |
Return value
Name | Type | Description |
---|---|---|
AcsiCalendarTime | Structure with initialized data elements. |
Example
METHOD FINAL Sample_AcsiCalendarTime : BOOL
VAR
calTm: ST_AcsiCalendarTime;
END_VAR
calTm:=AcsiCalendarTime(occ:=0, occType:=E_AcsiOccType.Time_,
occPer:=E_AcsiOccPer.Hour, weekDay:=E_AcsiWeekDay.Friday,
month:=E_AcsiMonth.April, day:=1, hr:=0, mn:=0);
Sample_AcsiCalendarTime:=TRUE;