Configure

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

Syntax

Definition:

METHOD Configure : BOOL
VAR_INPUT
    eLogicOperator : E_ALY_LogicOperator;
    eCountMode : E_ALY_CountMode;
END_VAR

Configure 1: Inputs

Name

Type

Description

eLogicOperator

E_ALY_LogicOperator

Configured logical operator.

eCountMode

E_ALY_CountMode

Mode of the result counter.

OnChange: The counter counts every time the result changes to TRUE.
Cyclic: The counter increments every cycle when the condition is TRUE.

Configure 2: Return value

Name

Type

Description

Configure

BOOL

Returns TRUE if successful.