Configure

Configure the algorithm. Channel specific parameter are set using the method ConfigueChannel().

Syntax

Definition:

METHOD Configure : BOOL
    tTimeOn : LTIME;
    tTimeOff : LTIME;
    nDayOfWeekMask : WORD;
VAR_INPUT
END_VAR

Configure 1: Inputs

Name

Type

Description

tTimeOn

LTIME

Time at which the timer should switch on

tTimeOff

LTIME

Time at which the timer should switch off

nDayOfWeekMask

WORD

Bit mask for selecting the day of the week on which the timer program is to be executed.

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.

Configure 2: Return value

Name

Type

Description

Configure

BOOL

Returns TRUE if successful.