-

GET_EXCEPTION_INFOS

TypeFunction block
DescriptionThe function block can be used in an Exception task to read details such as the task type, task name, program name, etc. from the assigned exception. At the EXCEPTION_INFO_ARRAY in-/output a variable of the data type ESM_EXCEPTION_INFO (predefined array) must be connected. This array is filled with the read information when the function block is called.

If an error occurs during execution, the ERROR output is set to TRUE. While ERROR = TRUE, the ERROR_ID output provides information on the cause of the error.
NotesFunction blocks have to be instantiated. The instance name of the function block has to be declared in the 'Variables' table of the POU where the FB is going to be used. The instance name must be unique within the POU.
ParametersInput/Output

EXCEPTION_INFO_ARRAY

Outputs

ERROR

ERROR_ID