Configure

Configuring the algorithm.

Syntax

Definition:

METHOD Configure : BOOL
VAR_INPUT
    bBias : BOOL;
    fStepSize : LREAL;
    nMiniBatchSize : UDINT
    tTimeout : TIME;
    nSetNumTeaches : UDINT;
    bInvolveExistingFile : BOOL;
    sFilePath : STRING(255);
END_VAR

Configure 1: Inputs

Name

Type

Description

bBias 

BOOL

If FALSE, the Bias Output 00 is set to zero and is not approximated further.

fStepSize

LREAL

Specifies how much the coefficients are adjusted after each new calculation.

nMiniBatchsize

UDINT

Specifies over how many cycles the MSE is to be calculated before the coefficients are adjusted based on it.

tTimeout 

TIME

Timeout for asynchronous operations.

bInvolveExistingFile

BOOL

If TRUE, include existing file (if any). If FALSE, create new file.

sFilePath 

STRING(255)

Path to the taught file, e.g. C:\TwinCAT\3.1\Boot\Teach.tas

Configure 2: Return value

Name

Type

Description

Configure

BOOL

Returns TRUE if successful.