VAL_LoadDatabase

VAL_LoadDatabase 1:

FUNCTION_BLOCK VAL_LoadDatabase

Load a database identified by the ID given as input parameter.

Parameter Name

Value

Comment

ErrorID

0

No error

[110..142]

See VAL3 error code of libLoad instruction

Syntax

Definition:

FUNCTION_BLOCK VAL_LoadDatabase
VAR_INPUT
    Execute     : BOOL := FALSE;
    DatabaseID  : INT := -1;
END_VAR
VAR_OUTPUT
    Busy     : BOOL := FALSE;
    Done     : BOOL := FALSE;
    Error    : BOOL := FALSE;
    ErrorID  : UDINT := 0;
END_VAR
VAR_IN_OUT
    AxesGroup  : T_StaeubliRobot;
END_VAR

VAL_LoadDatabase 2: Inputs

Name

Type

Description

Execute

BOOL

Rising edge starts function execution.

DatabaseID

INT

Identifier of the database to be loaded.

VAL_LoadDatabase 3: Outputs

Name

Type

Description

Busy

BOOL

Set when function block is executing. Reset when Done or Error is set

Done

BOOL

This output is set when function block has terminated with success

Error

BOOL

This output is set when function block has terminated with error

ErrorID

UDINT

Error code

VAL_LoadDatabase 4:/VAL_LoadDatabase 5: Inputs/Outputs

Name

Type

Description

AxesGroup

T_StaeubliRobot

Data block for a robot