VAL_GetInverseTransformation

VAL_GetInverseTransformation 1:

FUNCTION_BLOCK VAL_GetInverseTransformation

This functions blocks converts a cartesian position into a joint position. The computed joint position is computed with following rules:

Syntax

Definition:

FUNCTION_BLOCK VAL_GetInverseTransformation
VAR_INPUT
    Execute         : BOOL := FALSE;
    Position        : T_CartesianPos;
    ToolNumber      : UINT := 0;
    CoordSystem     : UINT := 0;
    JointReference  : T_JointPos;
END_VAR
VAR_OUTPUT
    Busy      : BOOL := FALSE;
    Done      : BOOL := FALSE;
    Error     : BOOL := FALSE;
    ErrorID   : UDINT := 0;
    JointPos  : T_JointPos;
END_VAR
VAR_IN_OUT
    AxesGroup  : T_StaeubliRobot;
END_VAR

VAL_GetInverseTransformation 2: Inputs

Name

Type

Description

Execute

BOOL

Rising edge triggers function execution

Position

T_CartesianPos

Cartesian position to convert into a joint position

ToolNumber

UINT

Number of the Tool Center Point used for the computation. The Tool Center Point is located in a plc dedicated database on robot side

CoordSystem

UINT

Number of the user frame to which the cartesian position relates. The user frame is stored in a plc dedicated database located on robot side.

JointReference

T_JointPos

Joint position used as a reference if configuration fields of input position are 1 or 2

VAL_GetInverseTransformation 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

JointPos

T_JointPos

Coordinates of the computed joint position

VAL_GetInverseTransformation 4:/VAL_GetInverseTransformation 5: Inputs/Outputs

Name

Type

Description

AxesGroup

T_StaeubliRobot

Data block for a robot