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.
-
Create and edit error messages
|
|
|
|
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:
|
|
|
wTextRefID WORD |
Text list ID of the cancelled error numbers
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
|
|
|
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.
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. |
|