VAL_SetBankSize
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
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. |
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 |