FC_ReactionToString - General Information

Overview

Type:

Function

Available as of:

V1.0.4.0

Task

Generating a compact display for a reaction.

Description

The function changes the axReaction array of a reaction to a string.

The change follows this pattern:

  • axReaction[1] := TRUE; + axReaction[15] := TRUE; ==> '1:15'

  • axReaction[4] := TRUE; ==> '4'

  • axReaction[3] := TRUE; + axReaction[11] := TRUE; + axReaction[20] := TRUE ==> '3:11:20'

  • no reaction ==> ''

Interface

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_stReaction

ST_Reaction

Structure of the reaction that shall be converted to a string.

Diagnostic Messages

q_etDiag

q_etDiagExt

Enumeration value

Description

OK

Ok

0

Ok

Ok

Enumeration name:

Ok

Enumeration value:

0

Description:

Ok

The axReaction array of a function successfully was converted to a string.