MC_GroupReadError

MC_GroupReadError 1:

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

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: up to and including v3.2)

MC_GroupReadError 5:

MC_GroupReadError 6: Inputs

VAR_INPUT
    Enable     : BOOL;
END_VAR

Name

Type

Description

Enable

BOOL

The command is executed as long as Enable is active.

MC_GroupReadError 7: Inputs/outputs

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: Outputs

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 platform

PLC libraries
to include

TwinCAT V3.1.4018.26

TF5400 Advanced Motion Pack V3.1.1.17

PC or CX (x64)

Tc3_McCoordinatedMotion, Tc2_MC2