Read an error stored on the RAM or EEPROM of the controller
Block to read an error stored on the RAM or EEPROM of the controller, active errors are read from RAM, stored from EEPROM
Description
The block receives an error number (starting at 1) and returns the number of active errors and the requested error data.
Remarks
- Error number 1 is the oldest error.
- Connect the 'number of errors' to a terminator if not used.
- Active errors are saved in RAM, they are lost by rebooting the ECU or by clearing the active error list.
- Stored errors are saved in EEPROM, they are only lost by clearing the stored error list.
- For active errors the occurence counter is incremented every time a error occurs.
It is reseted by rebooting the ECU or by clearing the active error list.
- For stored errors the occurence counter is always 1. It is reset by clearing the stored error list.
- Error codes 0 to 0x8000 are reserved for internal system errors.
Declaration
(No initialisation block needed)
Input
An uint8 containing the number of the error in the error list. Can be between 1 and 64.
Output
The four error values along with the total amount of errors is returned.
- Output 1
- The first output returns the number of total number of active or stored errors. This will
be returned as an uint8.
- Output 2
- The second output returns the error code (ID) of the requested error. This will
be returned as an uint16.
- Output 3
- The third output returns the given parameter of the error. This
will be returned as a unit8.
The parameter can be used for the severity of the error. Suggested values are:
10 = minor
15 = standby
20 = critical
- Output 4
- The fourth output returns the number of times the requested error has occurred (see remarks).
This will be returned as an uint8. If this value is 0, then the requested error was not set.
- Output 5
- The fifth output returns the timestamp of the requested error. The timestamp is in milliseconds after system
startup. This will be returned as an uint32.