VAL_ReadSafeReference

VAL_ReadSafeReference 1:

FUNCTION_BLOCK VAL_ReadSafeReference

VAL_ReadSafeReference 2:

Applicable for CS9 controller only

This function block returns the coordinates of a the safe reference position.For futher details about CS9 safety features, please consult 'CS9 Safety Manual'

Syntax

Definition:

FUNCTION_BLOCK VAL_ReadSafeReference
VAR_INPUT
    Execute  : BOOL := FALSE;
    Index    : INT := -1;
END_VAR
VAR_OUTPUT
    Busy           : BOOL := FALSE;
    Done           : BOOL := FALSE;
    Error          : BOOL := FALSE;
    ErrorID        : UDINT := 0;
    SafeReference  : T_JointPos;
END_VAR
VAR_IN_OUT
    AxesGroup  : T_StaeubliRobot;
END_VAR

VAL_ReadSafeReference 3: Inputs

Name

Type

Description

Execute

BOOL

Rising edge triggers function execution

Index

INT

Number of the safe reference. Range [1..2]

VAL_ReadSafeReference 4: 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

SafeReference

T_JointPos

Coordinates of the selected safe reference position

VAL_ReadSafeReference 5:/VAL_ReadSafeReference 6: Inputs/Outputs

Name

Type

Description

AxesGroup

T_StaeubliRobot

Data block for a robot