Configure

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

Syntax

Definition:

METHOD Configure : BOOL
VAR_INPUT
    bSetIsDominant : BOOL;
    eCountMode : E_ALY_CountMode;
END_VAR

Configure 1: Inputs

Name

Type

Description

bSetIsDominant

BOOL

The dominance of setting (RS) or resetting (SR) can be configured.

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.