FC_AddReactionTranslationJob - General Information

Overview

Type:

Function

Available as of:

V1.0.4.0

Task

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.

Description

The function adds a new job to the list of jobs in the ST_ReactionTranslationJobs data structure.

Interface

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

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

Input/Output

Data type

Description

iq_stReactionTranslationJobs

ST_ReactionTranslationJobs

Configuration structure of the submodule.

Here, "astReactionTranslationTable[c_udi<ModulName>]" must be applied.

Diagnostic Messages

q_etDiag

q_etDiagExt

Enumeration value

Description

OK

Ok

0

Ok

LimitReached

MaxNumberOfTranslationJobsExceeded

83

The maximum number of translation jobs has been exceeded

MaxNumberOfTranslationJobsExceeded

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.

Ok

Enumeration name:

Ok

Enumeration value:

0

Description:

Ok

A reaction translation job has successfully been added to the ST_ReactionTranslationJobs data structure.