VAL_GetBankSize

VAL_GetBankSize 1:

FUNCTION_BLOCK VAL_GetBankSize

This function block returns the size of the specified bank of data from the selected database.

Syntax

Definition:

FUNCTION_BLOCK VAL_GetBankSize
VAR_INPUT
    Execute       : BOOL := FALSE;
    UserDatabase  : BOOL := FALSE;
    DataType      : INT := 0;
    BankID        : INT := -1;
END_VAR
VAR_OUTPUT
    Busy      : BOOL := FALSE;
    Done      : BOOL := FALSE;
    Error     : BOOL := FALSE;
    ErrorID   : UDINT := 0;
    BankSize  : INT := 0;
END_VAR
VAR_IN_OUT
    AxesGroup  : T_StaeubliRobot;
END_VAR

VAL_GetBankSize 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)

BankID

INT

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

VAL_GetBankSize 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

BankSize

INT

Size of the selected bank of data

VAL_GetBankSize 4:/VAL_GetBankSize 5: Inputs/Outputs

Name

Type

Description

AxesGroup

T_StaeubliRobot

Data block for a robot