VAL_ReadMdesc

VAL_ReadMdesc 1:

FUNCTION_BLOCK VAL_ReadMdesc

This function returns the current value of a motion descriptor in the selected database.

Syntax

Definition:

FUNCTION_BLOCK VAL_ReadMdesc
VAR_INPUT
    Execute       : BOOL := FALSE;
    UserDatabase  : BOOL := FALSE;
    MdescIdx      : INT := -1;
END_VAR
VAR_OUTPUT
    Busy        : BOOL := FALSE;
    Done        : BOOL := FALSE;
    Error       : BOOL := FALSE;
    ErrorID     : UDINT := 0;
    MdescValue  : T_Mdesc;
END_VAR
VAR_IN_OUT
    AxesGroup  : T_StaeubliRobot;
END_VAR

VAL_ReadMdesc 2: Inputs

Name

Type

Description

Execute

BOOL

Rising edge triggers function execution

UserDatabase

BOOL

True=Data of the user database will be used

MdescIdx

INT

Index of the motion descriptor in the bank

VAL_ReadMdesc 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

MdescValue

T_Mdesc

Values for the motion descriptor

VAL_ReadMdesc 4:/VAL_ReadMdesc 5: Inputs/Outputs

Name

Type

Description

AxesGroup

T_StaeubliRobot

Data block for a robot