MC_GroupStop

MC_GroupStop 1:

FUNCTION_BLOCK MC_GroupStop

This function block commands a controlled motion stop.Moreover, this function cancels any movement that have been commanded and buffered on robot side.

Syntax

Definition:

FUNCTION_BLOCK MC_GroupStop
VAR_INPUT
    Execute  : BOOL := FALSE;
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

MC_GroupStop 2: Inputs

Name

Type

Description

Execute

BOOL

Rising edge starts function execution

MC_GroupStop 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

MC_GroupStop 4:/MC_GroupStop 5: Inputs/Outputs

Name

Type

Description

AxesGroup

T_StaeubliRobot

Data block for a robot