Store error
Block to store an error to RAM (and EEPROM) of the Controller
Description
When this block is triggerd, an error wil be stored to RAM. If the error is already present in RAM, its occurrence counter will be incremented
and the time stamp will be updated.
If the error occurs for the first time (and only then) since startup (and therefor is not present in the RAM) it will also be stored in EEPROM.
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 an error occurs. It resets if the error is erased.
again as the ECU was rebooted and the error occures again. It resets if the error is erased.
- The input of the 'Store error with inports' block must be variable in order for the block to work.
- Use the 'Store errors' block when using fixed error values.
- Error codes 0 to 0x8000 are reserved for internal system errors.
Declaration
(No initialisation block needed)
Input
Only the 'Store errors with inports' has inputs, when used provide an uint16 containing the error code (ID) and an uint8 for the parameter.
Parameters
Only the 'Store errors' block has parameters.
- Error Code
- An 16-bit error code can be used. Use 'hex2dec()'
to transform a hexadecimal formatted ID into a decimal ID.
- Parameter
- A parameter can be given. The parameter can be used for
the severity of the error. Suggested values are:
10 = minor
15 = standby
20 = critical