Organization and Structure of Error Numbers¶
Error Class [Bit 0-3] |
EC1 = fatal error | |
EC2 = serious error | ||
EC 3 = light error | ||
EC 4 = warning | ||
Faulty Component [Bit 4-7] |
1&6 = external Communication module | |
8 = local IO | ||
9 = CPU | ||
10 = internal Communication module | ||
11 = COM1 | ||
12 = COM2 | ||
13 = FBP | ||
14 = I/O Bus | ||
15 = User | ||
Faulty Device [Bit 8-15] |
Component specific → see table |
|
Faulty Module [Bit 16-20] |
Device specific, but mostly: 1 = initialization 2 = runtime 3 = project / configuration 4 = protocol 31 = device itself |
|
Faulty Channel [Bit 21-25] |
Module specific → see table |
|
Error Identifier [Bit 26-31] |
Various (0&63) → see table |
For each error, an error number is stored in the firmware. This error number is coded as follows:
Status | Error class | Faulty component | Faulty device | Faulty module | Faulty channel | Error identifier |
---|---|---|---|---|---|---|
28…29 | 24…27 | 16…23 | 11…15 | 6…10 | 0…5 | |
4 bits | 2 bits | 4 bits | 8 bits | 5 bits | 5 bits | 6 bits |
0…3 | 0…15 | 0…255 | 0…31 | 0…31 | 0…63 |
Status value | Meaning |
---|---|
Bit 0 | not used |
Bit 1 | Error occurrence (come) |
Bit 2 | Error removed (gone) |
Bit 3 | Error acknowledgement |
In addition to the error information, the diagnosis message also contains status information (1 bit per status). Each status is set by a specific event:
- Error occurrence (come)
- Error acknowledgement
- Error removal (gone)
The diagnosis message is generated when an error occurs. In this case, the status bit 1 is set. If this error is acknowledged or removed afterwards, the corresponding status bits are set additionally.
In the Control Builder, the online error number is displayed. This error number is sent to the Control Builder when working in online mode and decoded language-dependent using the controller description file Errors.ini. The error number is coded as follows:
Faulty component | Faulty device | Faulty module | Faulty channel | Error identifier |
---|---|---|---|---|
24…27 | 16…23 | 11…15 | 6…10 | 0…5 |
4 bits | 8 bits | 5 bits | 5 bits | 6 bits |
0…15 | 0…255 | 0…31 | 0…31 | 0…63 |
The error status (come, gone, acknowledged) and the error class are hidden in the online error number and displayed as plain-text.