L_IE1P_ReadActualErrorCode

This FB can be used to read out the currently highest priority event of a component.

It is made available:

  • 32 bit error number (component ID + event ID)

  • Severity

Errors that are already active when the application is loaded are not displayed.

NOTE

This FB can be used in combination with FB L_IE1P_ReadActualSeverity to find out the error number for the reported highest priority of a component.

For this purpose, the output AffectedChild of FB L_IE1P_ReadActualSeverity must be connected to the input ModuleHandler of FB L_IE1P_ReadActualErrorCode.

 

 

 

L_IE1P_ReadActualErrorCode

 

 

 

BOOL

–

 

xEnable

xBusy

 

–

BOOL

L_IMHP_IModuleHandler

–

 

ModuleHandler

xError

 

–

BOOL

L_IE1P_IErrorHandler

–

 

ErrorHandler

eErrorID

 

–

L_IE1P_Error

       

xErrorActive

 

–

BOOL

       

xWarningActive

 

–

BOOL

       

dwErrorCode

 

–

DWORD

       

eSeverity

 

–

L_IE1P_SeverityLevel

 

 

 

 

 

 

 

 

Inputs

Name

Datentyp

Information/possible settings

xEnable

BOOL

TRUE

Activate reading of the error information

Modulehandler

L_IMHP_IModuleHandler

Definition of the affiliation of error messages to a module.

If this input is connected, the errors generated for the module are displayed at the outputs.

If the ModuleHandler input is not connected, the errors of the "Application" component are acknowledged.

The "Application" component contains error messages that were sent with an FB L_IE1P_SetError or L_IE1P_SetErrorSingle without a ModuleHandler connected.

Errorhandler

L_IE1P_IErrorHandler

Input is only required for 3200/i950

Connection of the function block instance, a component in which the error reaction should be executed.

The following types can currently be connected:

  • Motion axes (AXIS_REF)

  • Axes groups (Axes_Group)

  • FB L_IE1P_ErrorHandler (if no axis is present or the reaction is to be triggered in several components simultaneously)

Outputs

Name

Datentyp

Value/meaning

xBusy

BOOL

TRUE

The FB is processed

xError

BOOL

TRUE

An error has occured. For details see eErrorID .

eErrorID

L_IE1P_Error

If xError = TRUE: Error number for the error that occurred within the FB.

Reference Manual " FAST Technology Modules ":

Here you will find information on error or warning messages.

xErrorActive

BOOL

TRUE

The reported event is an error

xWarningActive

BOOL

TRUE

The reported event is a warning

dwErrorCode

DWORD

Error number consisting of component ID and event ID

The structure of the error number and the definition of the error texts is described in chapter "Error numbers / Error texts".

eSeverity

L_IE1P_Severity

Severity of the actual error