VAL_SetBankSize

VAL_SetBankSize 1:

FUNCTION_BLOCK VAL_SetBankSize

This function blocks resizes the bank of the specified type in user or plc database

Syntax

Definition:

FUNCTION_BLOCK VAL_SetBankSize
VAR_INPUT
    Execute       : BOOL := FALSE;
    UserDatabase  : BOOL := FALSE;
    DataType      : INT := 0;
    DataSize      : INT := 0;
    BankID        : 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_SetBankSize 2: Inputs

Name

Type

Description

Execute

BOOL

Rising edge triggers function execution

UserDatabase

BOOL

True=Use user database; False=Use plc database

DataType

INT

Type of data to resize (1 = point, 2 = joint, 3 = tool, 4 = motion descriptor)

DataSize

INT

New size for the selected bank

BankID

INT

Number of the bank of point to resize. This parameter is effective only when DataType parameter = 1.

VAL_SetBankSize 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_SetBankSize 4:/VAL_SetBankSize 5: Inputs/Outputs

Name

Type

Description

AxesGroup

T_StaeubliRobot

Data block for a robot