VAL_WriteFrame

VAL_WriteFrame 1:

FUNCTION_BLOCK VAL_WriteFrame

This function writes the coordinates of a user frame associated to a bank of point located in a database.

Syntax

Definition:

FUNCTION_BLOCK VAL_WriteFrame
VAR_INPUT
    Execute       : BOOL := FALSE;
    UserDatabase  : BOOL := FALSE;
    BankID        : INT := -1;
    FrameX        : REAL := 0;
    FrameY        : REAL := 0;
    FrameZ        : REAL := 0;
    FrameRX       : REAL := 0;
    FrameRY       : REAL := 0;
    FrameRZ       : REAL := 0;
    SaveOnDisk    : BOOL := TRUE;
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_WriteFrame 2: 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 user frame is returned.

FrameX

REAL

Value for X coordinate

FrameY

REAL

Value for Y coordinate

FrameZ

REAL

Value for Z coordinate

FrameRX

REAL

Value for RX coordinate

FrameRY

REAL

Value for RY coordinate

FrameRZ

REAL

Value for RZ coordinate

SaveOnDisk

BOOL

True=Tool data stored onto the controller's flashdisk. False=Data not stored--> faster FB execution

VAL_WriteFrame 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_WriteFrame 4:/VAL_WriteFrame 5: Inputs/Outputs

Name

Type

Description

AxesGroup

T_StaeubliRobot

Data block for a robot