ConfigureWeekly

Configure the algorithm for a weekly repetition of the events.

Syntax

Definition:

METHOD Configure : BOOL
    tTimeEvent : LTIME;
    nDayOfWeekMask : WORD;
VAR_INPUT
END_VAR

ConfigureWeekly 1: Inputs

Name

Type

Description

tTimeEvent

LTIME

Time of the event.

nDayOfWeekMask

WORD

Bit mask for selecting the day of the week on which the event is to be generated.

1: Sunday

2: Monday

4: Tuesday

8: Wednesday

16: Thursday

32: Friday

64: Saturday

The enumeration E_ALY_DayOfWeekMask can be used. Multiple days can be combined with the operator OR.

ConfigureWeekly 2: Return value

Name

Type

Description

ConfigureWeekly

BOOL

Returns TRUE if successful.