Error numbers and error texts
The error number displayed in the logbook consists of two values of 16 bits each:
- Bit 31 ... 16: TextRefID
- Bit 15 ... 0: Error-ID (event)
|
TextRefID |
Error-ID (event) |
||||
|---|---|---|---|---|---|
|
Bit 31 ......... Bit 16 |
Bit 15 .............. Bit 0 |
||||
|
In combination with the error ID, each event number is unique in the system.
Note The use of other TextRefIDs outside the range of 0x3C00 ... 0x3FFF
|
Error number This number must only be unique within the given TextRefID. |
The assignment of the 16-bit error number of a component, which is described by a TextRefID, to the associated error texts is done with the help of an ErrorManagement-Textlist, which must be created in the "PLC Designer" project.
The error management text list is created by a PLC Designer dialogue and can then be edited:
-
A free TextRefID that is not yet used in the application is automatically assigned to the newly created ErrorManagement text list object. This can be subsequently adapted
-
Allowed values of the textrefID for user error numbers are:
15360 (0x3C00) … 16383 (0x3FFF)
Subsequently, the individual error numbers can be specified by the programmer:
-
Only 2 languages are supported. The main language is English.
In addition, a variable of the type WORD with the name of the error text list is automatically created. This is initialised with the value of the assigned TextRefID and can be used directly, for example, when assigning the TextRefID to an FB of the type L_IE1P_SetErrorSingle.
Export / Import der Textliste
As an alternative to entering text in the "PLC Designer", the ErrorManagement text list can also be exported and imported for convenient editing, e.g. by Microsoft Excel.