ConfigureFromFile

Configures the algorithm based on a previously created file. After calling this method, the method UpdateState() must be called until the status of the function block is no longer Pending.

Syntax

Definition:

METHOD ConfigureFromFile : BOOL
VAR_INPUT
    tTimeout : TIME;
    sFilePath : STRING(255);
END_VAR

ConfigureFromFile 1: Inputs

Name

Type

Description

tTimeout 

TIME

Timeout for asynchronous operations.

sFilePath 

STRING(255)

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

ConfigureFromFile 2: Return value

Name

Type

Description

ConfigureFromFile

BOOL

Returns TRUE if successful.