BF02_SetErrors

The action BF02_SetErrors in the module folder MFB01_BasicFunctions contains the predefined instances "Errors1" ... "Errors8" of the function block L_IE1P_SetErrorSingle for error handling and the triggering of 8 error messages.

When the error occurs, the corresponding error message is entered in the logbook.

L_IE1P_SetErrorSingle

L_IMHP_IModuleHandler

-

ModuleHandler

xError

-

BOOL

L_IE1P_IErrorHandler

-

ErrorHandler

eErrorID

-

L_IE1P_Error

WORD

-

wTexRefID

scErrorInformation

-

L_IE1P_ErrorInfo

BOOL

-

xSetError

L_IE1P_SeverityLevel

-

eSeverity

WORD

-

wErrorId

L_IE1P_Reaction

-

eReaction

L_IE1P_Group

-

eGroup

Inputs

Name

Data type

Info/adjustment options

ModuleHandler

L_IMHP_IModuleHandler

Defines the assignment of error messages to a module.

The ModuleHandler can be used to group functions in the software.

For example, certain functions can be assigned to machine modules. By connecting the ModuleHandler to the FB L_IE1P_SetError, the errors can be assigned to the machine module.

If the ModuleHandler input is not connected, the errors sent are assigned to the "Application" component.

Error handler

L_IE1P_IErrorHandler

Connection of the function block instance of a component in which the error response is to 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)

wTextRefID

WORD

Text list ID of the cancelled error numbers

  • Only values between 0x3C00..0x3FFF permitted

  • The variable name of the ErrorManagement text list can also be created here

If a 0 or 0x2C00 is specified, an error with the text list ID 0x2C00 is generated. This ID is reserved for Lenze. This means that the FAST

Motion error generated from the L_IE1P_Error enum

xSetError

BOOL

FALSE äTRUE

Trigger errors with the properties attached to eSeverity, wErrorID, wTextRefIdand eGroup.

TRUE

The triggered error cannot yet be acknowledged.

eSeverity

L_IE1P_SeverityLevel

Severity / error reaction of the error

wErrorId

WORD

16-bit event number of the error

  • Only numbers > 0 are permitted

  • The event number must not be used simultaneously at the other wErrorID inputs.

eReaction

L_IE1P_Reaction

Reaction to be triggered by the error

This input is only evaluated for errors with the severities Warning, Warning_Lock, Fault_Log and Fault.

eGroup

L_IE1P_Group

Group membership of the error

By assigning an error to a group, these errors are made known to a specific group of users.

  • Filtering in the logbook is possible.

Tip: Further information can be found in the description of the "PLC Designer" under "Node settings"

Outputs

Name

Data type

Value/meaning

xError

BOOL

TRUE

An error occurred during the processing of the FB. For details, see eErrorID.

eErrorID

L_IE1P_Error

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

scErrorInformation

L_IE1P_ErrorInfo

Status information that the error has been triggered.