FC_UpdateNodeModuleAddInterfaceStruct - General Information

Overview

Type:

Function

Available as of:

V1.0.4.0

Task

Set the addresses of the possible additional interface (Additional Interface) to zero

Description

Sets the addresses of the possible additional interface (Additional Interface) to zero since a default module / default node does not have any interfaces in addition to the default one.

Interface

Input

Data type

Description

i_pdwSubModulesAddItf

POINTER TO DWORD

Address of the array for the additional interfaces.

i_udiSubModuleConstant

DINT

Number of the default module to be processed.

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: The address of the additional interfaces is set to 0

FALSE: The input variables are invalid.

Diagnostic Messages

q_etDiag

q_etDiagExt

Enumeration value

Description

OK

Ok

0

Ok

InputParameterInvalid

PointerSubModulesAddItfInvalid

60

The pointer onto SubModulesAddItf is invalid.

InputParameterInvalid

SubModuleConstantRange

61

SubModuleConstant is outside the valid range.

Ok

Enumeration name:

Ok

Enumeration value:

0

Description:

Ok

The UpdateNodeModuleAddInterfaceStruct.DiagMsgs function was without executed exceptions

PointerSubModulesAddItfInvalid

Enumeration name:

PointerSubModulesAddItfInvalid

Enumeration value:

60

Description:

The pointer onto SubModulesAddItf is invalid.

Issue

Cause

Solution

-

The pointer SubModulesAddItf is invalid

The value of SubModulesAddItf must not be = 0.

SubModuleConstantRange

Enumeration name:

SubModuleConstantRange

Enumeration value:

61

Description:

SubModuleConstant is outside the valid range.

Issue

Cause

Solution

-

The constant of submodule is outside the value range

The value of SubModuleConstant must not be <1