This function initializes the table for reaction translation with default values. Each module receives the active reactions triggered by the pending exceptions. The number of reaction classes can be set via the Gc_udiMaxNumberOfReactions global parameter.
Using translation modes contains examples for use.
Input |
Data type |
Description |
---|---|---|
i_udiNumberOfSubModules |
UDINT |
Number of submodules of the node. |
i_pstReactionTranslationTable |
POINTER TO ST_Reaction |
Pointer onto configuration table of the translation modes. |
Output |
Data type |
Description |
---|---|---|
q_etDiag |
General, library-independent statement on the diagnostic. A value unequal GD.ET_Diag.Ok equates an error message. |
|
q_etDiagExt |
POU-specific output on the diagnostic. q_etDiag = GD.ET_Diag.Ok -> status message q_etDiag <> GD.ET_Diag.Ok -> diagnostic message |
q_etDiag |
q_etDiagExt |
Enumeration value |
Description |
---|---|---|---|
OK |
Ok |
0 |
Ok |
InputParameterInvalid |
NumberOfSubModulesRange |
66 |
The number of submodules is outside the specified range |
InputParameterInvalid |
PointerReactionTranslationTableInvalid |
139 |
The pointer ReactionTranslationTable is invalid |
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. |
Enumeration name: |
Ok |
Enumeration value: |
0 |
Description: |
Ok |
The initialization of the reaction translation table was successful.
Enumeration name: |
PointerReactionTranslationTableInvalid |
Enumeration value: |
139 |
Description: |
The pointer ReactionTranslationTable is invalid |
Issue |
Cause |
Solution |
---|---|---|
- |
At the input i_pstReactionTranslationTable an invalid value has been applied. |
A valid memory address unequal 0 has to be transferred to the i_pstReactionTranslationTable input. |