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

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.