MCV_GrpReadErrorHistory

The function block displays the errors and warnings occurring in the motion controller in the sequence they occur at the “ErrorInfo” output. The first error occurring since the last command of a MC_GrpReset is the error with the lowest array index.

Blockdiagramm

Parameters of the FB

VAR_IN_OUT

Variable name

Data type

Description

AxesGroup

AXES_GROUP_REF

Axis group reference

VAR_INPUT

Variable name

Data type

Description

enable

BOOL

As long as the input is TRUE, errors and warnings of the Motion Controller are listed in the sequence of their occurrence at the “ErrorInfo” output.

VAR_OUTPUT

Variable name

Data type

Description

Valid

BOOL

TRUE indicates that the list at the “ErrorInfo” output is up to date and valid.

ErrorInfo

ARRAY [0..MCV_AGR_ERR_BUF_MAXIDX] OF MC_ERROR_INFO_REF

Error identifiers of the motion controller are output in the sequence of their occurrence. The current error is always the one with the highest array index irrespective of the number of error identifiers displayed, even if the list is completely full.

Error

BOOL

TRUE indicates that an error occurred.

ErrorID

WORD

Error code.