VAL_ReadFrame
FUNCTION_BLOCK VAL_ReadFrame
This function block returns the value of the user frame associated to a bank of point.
Syntax
Definition:
FUNCTION_BLOCK VAL_ReadFrame
VAR_INPUT
Execute : BOOL := FALSE;
UserDatabase : BOOL := FALSE;
BankID : INT := -1;
END_VAR
VAR_OUTPUT
Busy : BOOL := FALSE;
Done : BOOL := FALSE;
Error : BOOL := FALSE;
ErrorID : UDINT := 0;
FrameValue : T_Trsf;
END_VAR
VAR_IN_OUT
AxesGroup : T_StaeubliRobot;
END_VAR
Inputs
Name |
Type |
Description |
---|---|---|
Execute |
BOOL |
Rising edge triggers function execution |
UserDatabase |
BOOL |
True= Data of the user database will be used |
BankID |
INT |
Number of the bank for which coordinate system (frame) is returned. |
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 |
FrameValue |
Coordinates of the requested user frame |