FC_AllSubModulesInException

 

FC_AllSubModulesInException - General Information

Overview

Type:

Function

Available as of:

V1.0.4.0

Task

Determines whether all submodules report an exception.

Description

The function checks if all subordinate modules have set their exception output via StandardModuleInterface.

Interface

Input

Data type

Description

i_udiNumberOfSubModules

UDINT

Number of submodules in the field at the i_pstSubModulesItf input.

i_pstSubModulesItf

POINTER TO ST_StandardModuleInterface

Field of the default interfaces of the subordinate modules.

Output

Data type

Description

q_etDiag

GD.ET_Diag

General, library-independent statement on the diagnostic.

A value not equal to ET_Diag.Ok corresponds to an error message.

q_etDiagExt

ET_DiagExt

POU-specific output on the diagnostic.

q_etDiag = ET_Diag.Ok -> Status message

q_etDiag <> ET_Diag.Ok -> Error message

Return Value

Data type

Description

BOOL

TRUE: All submodules detect an error

FALSE: Not all submodules detect an error

Diagnostic Messages

q_etDiag

q_etDiagExt

Enumeration value

Description

OK

Ok

0

Ok

InputParameterInvalid

PointerSubModulesItfInvalid

97

The pointer SubModulesItf is invalid

Ok

Enumeration name:

Ok

Enumeration value:

0

Description:

Ok

Feedback value is determined successfully.

PointerSubModulesItfInvalid

Enumeration name:

PointerSubModulesItfInvalid

Enumeration value:

97

Description:

The pointer SubModulesItf is invalid

Issue

Cause

Solution

-

The input i_pstSubModulesItf is set to zero

The input i_pstSubModulesItf has to be connected to the address of the array which holds the submodule interface structures.