SR_ExceptionTranslation Program

Overview

The program SR_ExceptionTranslation implements the logic to convert the numeric error codes for each exception into a plain text message which can be displayed in a EcoStruxure Machine Expert visualization or on an HMI.

Internally an instance of the function block FB_UpdateExpandedExceptionList is called. This function block can reference an exception translator for each type of module.

Each exception is generated with a unique module ID and the device type ID to identify the source of the exception. The function block FB_UpdateExpandedExceptionList converts the error code of an exception into a plain text which is defined in the translator with the same device type ID.

In the application example for each module handler, as well as for the MainMachine an exception translator function block is implemented.

The SR_ExceptionTranslation is called in a separate task with lower priority and a greater task interval than the MAST task.