Configure

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

Syntax

Definition:

METHOD Configure : BOOL
VAR_INPUT
    eComparisonOperator : E_ALY_ComparisonOperator;
    eCountMode : E_ALY_CountMode;
    bUseAbsValues : BOOL;
END_VAR

Configure 1: Inputs

Name

Type

Description

eComparisonOperator

E_ALY_ComparisonOperator

Specifies whether the input value should be greater than, greater than or equal to, less than or equal to, less than or not equal to the reference value.

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.

bUseAbsValues

BOOL

If TRUE, the absolute values of the input signals are used.

Configure 2: Return value

Name

Type

Description

Configure

BOOL

Returns TRUE if successful.