Configure

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

Syntax

Definition:

METHOD Configure : BOOL
VAR_INPUT
    sReference : STRING(255);
    eStringCompareMode : E_ALY_StringCompareMode;
    eCountMode : E_ALY_CountMode;
    bCaseSensitive : BOOL;
END_VAR

Configure 1: Inputs

Name

Type

Description

sReference

STRING(255)

Reference string for the comparison.

eStringCompareMode

E_ALY_StringCompareMode

String compare mode:

Equals: Input string corresponds to the reference string.

BeginsWith: Input string starts with the reference string.

Contains: Input string contains the reference string.

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.

bCaseSensitive

BOOL

If TRUE, upper and lower case is taken into account.

Configure 2: Return value

Name

Type

Description

Configure

BOOL

Returns TRUE if successful.