L_IE1P_SetError

With this FB up to 4 different errors with different severity levels can be triggered / logged.

When an error is triggered

  • The error for the component connected via the Module Handler input is assigned.

  • the specified error response is executed in the component connected via the ErrorHandler input
    Enumerations

  • the error in object 0x2010 is displayed

  • generates a logbook entry

For a description of the error number structure and the definition of the error texts, see

  • Error numbers / Error texts

NOTE

Several errors with the same error ID may not be triggered simultaneously per FB instance.

 

 

 

L_IE1P_SetError

 

 

 

L_IMHP_IModuleHandler

–

 

ModuleHandler

xError

 

–

BOOL

L_IE1P_IErrorHandler

–

 

ErrorHandler

eErrorID

 

–

L_IE1P_ErrorInfo

WORD

–

 

wTexRefID

scErrorInformation1

 

–

L_IE1P_ErrorInfo

BOOL

–

 

xSetError1

scErrorInformation2

 

–

L_IE1P_ErrorInfo

L_IE1P_SeverityLevel

–

 

eSeverity1

scErrorInformation3

 

–

L_IE1P_ErrorInfo

WORD

–

 

wErrorId1

scErrorInformation4

 

–

L_IE1P_ErrorInfo

L_IE1P_Reaction

–

 

eReaction1

       

L_IE1P_Group

–

 

eGroup1

       

BOOL

–

 

xSetError2

       

L_IE1P_SeverityLevel

–

 

eSeverity2

       

WORD

–

 

wErrorId2

       

L_IE1P_Reaction

–

 

eReaction2

       

L_IE1P_Group

–

 

eGroup2

       

BOOL

–

 

xSetError3

       

L_IE1P_SeverityLevel

–

 

eSeverity3

       

WORD

–

 

wErrorId3

       

L_IE1P_Reaction

–

 

eReaction3

       

L_IE1P_Group

–

 

eGroup3

       

BOOL

–

 

xSetError4

       

L_IE1P_SeverityLevel

–

 

eSeverity4

       

WORD

–

 

wErrorId4

       

L_IE1P_Reaction

–

 

eReaction4

       

L_IE1P_Group

–

 

eGroup4

       

 

 

 

 

 

 

 

 

Inputs

Name

Datentyp

Information/possible settings

ModuleHandler

L_IMHP_IModuleHandler

Defines the assignment of error messages to a module.

Functions can be grouped in the software by the ModuleHandler.

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 transmitted errors are assigned to the "Application" component.

Errorhandler

L_IE1P_IErrorHandler

Connection of the function block instance of a component in which the error reaction 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 lists ID of the set error numbers

  • Only values between 0x3C00..0x3FFF permissible

  • 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[1 ... 4]

BOOL

FALSE ä TRUE

Trigger errors with the properties attached to eSeverity[1 ... 4] , wErrorId[1 ... 4] , wTextRefId[1 ... 4] and eGroup[1 ... 4] .

TRUE

The triggered error cannot yet be acknowledged.

eSeverity[1 ... 4]

L_IE1P_SeverityLevel

Severity / error reaction of the error [1 ... 4]

wErrorId[1 ... 4]

WORD

16 Bit error event number [1 ... 4]

  • Only numbers > 0 are allowed
  • The event number must not be used simultaneously on the other wErrorID inputs.

eReaction[1 ... 4]

L_IE1P_Reaction

Reaction to be triggered with the error [1..4]

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

eGroup[1 ... 4]

L_IE1P_Group

Group membership of the error [1 ... 4]

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

  • Die Filterung im Logbuch ist möglich.

Tip

Further information can be found in the section "Settings for the FAST_MachineErrorManager node" in the Lenze Engineering Tool "PLC Designer" customer manual.

Outputs

Name

Datentyp

Value/meaning

xError

BOOL

TRUE

An error has occured. For details see eErrorID .

Output or display of all errors occurring in the axis see xAxisError or eAxisErrorID .

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.

Note:

There is a distinction between:

  • FB errors ( eErrorID )
  • AXIS_REF errors ( eAxisErrorID )
  • Drive errors ( dwDriveErrorID )

scErrorInformation

L_IE1P_ErrorInfo

Status information that the error [1..4] was triggered.
Properties

When declaring the FB, the function block can be additionally configured by the following properties.

Property

Typ

Beschreibung

DefaultTextRefId

WORD

Here the default TextRefID for reporting errors via this FB can be specified. Thus the input wTextRefIDX for the respective error must not be set any more.

If the property is not initialized, the TextRefID 0x2C00 is used by default.

Error numbers from the library L_IE1P_ApplicationErrors

L_IE1P_SetError1:L_IE1P_SetError:= (DefaultTextRefId := 15360);

NOTE

The properties must already be set when declaring the FB. A change at runtime has no effect.