Configuring the reaction translation of a submodule in the ET_ReactionTranslationMode.Jobs mode. The function is called up in the Init_Reactions action of a node.
The function adds a new job to the list of jobs in the ST_ReactionTranslationJobs data structure.
Input |
Data type |
Description |
---|---|---|
i_udiSourceStart |
UDINT |
Number of the reaction as of which copying from the input reaction of the module is to take place. |
i_udiNumReactions |
UDINT |
Number of reactions to be copied with this job. |
i_udiTargetStart |
UDINT |
Number of the reaction as of which it shall be written into the reaction of the submodule. When writing, the copied reactions are linked to previously set reactions from other copy jobs with OR. |
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 |
Input/Output |
Data type |
Description |
---|---|---|
iq_stReactionTranslationJobs |
Configuration structure of the submodule. Here, "astReactionTranslationTable[c_udi<ModulName>]" must be applied. |
q_etDiag |
q_etDiagExt |
Enumeration value |
Description |
---|---|---|---|
OK |
Ok |
0 |
Ok |
LimitReached |
MaxNumberOfTranslationJobsExceeded |
83 |
The maximum number of translation jobs has been exceeded |
Enumeration name: |
MaxNumberOfTranslationJobsExceeded |
Enumeration value: |
83 |
Description: |
The maximum number of translation jobs has been exceeded |
Issue |
Cause |
Solution |
---|---|---|
Exception message |
The maximum number of translation jobs for reactions was exceeded. |
Adapt the Gc_udiMaxNumberOfTranslationJobs parameter to be able to add further translation jobs. |