FC_InitReactionTranslationMode

 

FC_InitReactionTranslationMode - General Information

Overview

Type:

Function

Available as of:

V1.0.4.0

Task

Initializes the configuration of the reaction translation for the FB_ExceptionHandler function block.

Description

The function sets the mode of the reaction translation for all submodules to the ET_ReactionTrans­lationMode.None default value.

Using translation modes contains examples for the use.

Interface

Input

Data type

Description

i_udiNumberOfSubModules

UDINT

Number of submodules of the node.

i_petReactionTranslationMode

POINTER TO ET_ReactionTranslationMode

Pointer onto configuration structure of the translation modes.

Output

Data type

Description

q_etDiag

GD.ET_Diag

General, library-independent statement on the diagnostic.

A value unequal GD.ET_Diag.Ok equates an error message.

q_etDiagExt

ET_DiagExt

POU-specific output on the diagnostic.

q_etDiag = GD.ET_Diag.Ok -> status message

q_etDiag <> GD.ET_Diag.Ok -> diagnostic message

Diagnostic Messages

q_etDiag

q_etDiagExt

Enumeration value

Description

OK

Ok

0

Ok

InputParameterInvalid

NumberOfSubModulesRange

66

The number of submodules is outside the specified range

InputParameterInvalid

PointerReactionTranslationModeInvalid

146

The pointer ReactionTranslationMode is invalid

NumberOfSubModulesRange

Enumeration name:

NumberOfSubModulesRange

Enumeration value:

66

Description:

The number of submodules is outside the specified range

Issue

Cause

Solution

-

An invalid value was transferred at the i_udiNumberOfSubModules input.

The value at the input i_udiNumberOfSubModules must be >=0.

Ok

Enumeration name:

Ok

Enumeration value:

0

Description:

Ok

Initialization of the configuration of the reaction translation modes was successful.

PointerReactionTranslationModeInvalid

Enumeration name:

PointerReactionTranslationModeInvalid

Enumeration value:

146

Description:

The pointer ReactionTranslationMode is invalid

Issue

Cause

Solution

-

An invalid value was applied at the i_petReactionTranslationMode input.

A valid memory address unequal 0 has to be transferred to the i_petReactionTranslationMode input.