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

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