VAL_SafeBrakeTest

VAL_SafeBrakeTest 1:

FUNCTION_BLOCK VAL_SafeBrakeTest

VAL_SafeBrakeTest 2:

Applicable for CS9 controller only

This function blocks commands a test of all the brakes of the connected robot.

For futher details about CS9 safety features, please consult 'CS9 Safety Manual'

Syntax

Definition:

FUNCTION_BLOCK VAL_SafeBrakeTest
VAR_INPUT
    Execute  : BOOL := FALSE;
END_VAR
VAR_OUTPUT
    Busy         : BOOL := FALSE;
    Done         : BOOL := FALSE;
    Error        : BOOL := FALSE;
    ErrorID      : UDINT := 0;
    BrakeStatus  : ARRAY [0..5] OF INT;
END_VAR
VAR_IN_OUT
    AxesGroup  : T_StaeubliRobot;
END_VAR

VAL_SafeBrakeTest 3: Inputs

Name

Type

Description

Execute

BOOL

Rising edge triggers function execution

VAL_SafeBrakeTest 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

BrakeStatus

ARRAY [0..5] OF INT

Result of the brake test for each axis

VAL_SafeBrakeTest 5:/VAL_SafeBrakeTest 6: Inputs/Outputs

Name

Type

Description

AxesGroup

T_StaeubliRobot

Data block for a robot