MC_GroupReadError

MC_GroupReadError 1:

TF5410
TwinCAT 3 Motion Collision Avoidance

TF5420
TwinCAT 3 Motion Pick-and-Place

 

MC Group with Pick-and-Place

MC Group Coordinated Motion

MC_GroupReadError 2:

MC_GroupReadError 3:

MC_GroupReadError 4:

This function block returns the error code for the group. It does not return any errors for function blocks (e.g. invalid parameterization).

MC_GroupReadError 5: VAR_INPUT

VAR_INPUT
    Enable     : BOOL;
END_VAR

Name

Type

Description

Enable

BOOL

The command is executed as long as Enable is active.

MC_GroupReadError 6: MC_GroupReadError 7: VAR_IN_OUT

VAR_IN_OUT
   AxesGroup             : AXES_GROUP_REF;
END_VAR

Name

Type

Description

AxesGroup

AXES_GROUP_REF

Reference to a group of axes (see Cyclic group interface).

MC_GroupReadError 8: VAR_OUTPUT

VAR_OUTPUT
    Valid        : BOOL;
    Busy         : BOOL;
    Error        : BOOL;
    ErrorId      : UDINT;
    GroupErrorId : UDINT;
END_VAR

Name

Type

Description

Valid

BOOL

This output indicates that other output values are valid for this function block.

Busy

BOOL

This output becomes TRUE when the command is started with Enable and remains so as long as the function block executes the command.

Error

BOOL

This output becomes TRUE if an error has occurred during command execution.

ErrorId

UDINT

Contains the command-specific error code of the last executed command. Details of the error code can be found in the ADS error documentation or in the NC error documentation (error codes 0x4nnn and 0x8nnn).

GroupErrorId

UDINT

Returns the error ID of the group (see NC error documentation).

Requirements

Development environment

Target system type

PLC libraries to be linked

TwinCAT V3.1.4018.26

TF5400 Advanced Motion Pack V3.1.1.17

PC or CX (x86 or x64)

Tc3_McCoordinatedMotion, Tc2_MC2