Search an error stored in RAM or EEPROM of the controller
Block to search an error stored on the RAM or EEPROM of the controller, based on error code and error parameter.
Description
The block receives the error code and parameter, returning (if available) the found error data.
Remarks
- Active errors are saved at the RAM, they are lost by rebooting the ECU or by clearing the active error list.
- Stored errors are saved at the 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.
- The combination of the error code and parameter makes an unique error.
- Error codes 0 to 0x8000 are reserved for internal system errors.
Declaration
(No initialisation block needed)
Input
- Input 1
- An uint16, containing the error code of the requested error.
- Input 2
- An uint8, either being the error paramter or array number.
Output
Two values will be returned.
- Output 1
- The first output returns the number of times the requested error has occurred (see also remarks).
This will be returned as an uint8.
- Output 2
- The second output returns the timestamp of the requested error. The timestamp is in milliseconds,
starting at the start of the operating time counter. This will be returned as an uint32.
Parameters
- Sample time
- Sample time of the block. The Sample time (in seconds) defines
the rate at which the block is visited by the real-time scheduler of
the target. The value of the Sample time has to be an integer multiple
of the base sample time of the model.