SetInital

Initialize internal values of the algorithm.

Syntax

Definition:

METHOD SetInitial : BOOL
VAR_INPUT
    nCountOn : ULINT;
    nCountOff : ULINT;
END_VAR

SetInital 1: Inputs

Name

Type

Description

nCountOn

ULINT

Initializes the number of detected On events.

nCountOff

ULINT

Initializes the number of detected Off events.

SetInital 2: Return value

Name

Type

Description

SetInitial

BOOL

Returns TRUE if successful.