CheckExpSubmodule (FB)

FUNCTION_BLOCK CheckExpSubmodule

Check the module configuration that the controller expects in the Connect-req.

If there is a mismatch between expected and real submodule, the outputs are set accordingly.

InOut:

Scope

Name

Type

Initial

Comment

Input

xEnable

BOOL

TRUE

Enable function

AR_ID

DWORD

CommFB.Constants.INVALID_ID

ID of the Application Relation ( = Connection) that has to be checked.

Index

DINT

0

Index of the expected submodule. Range [0 - ExpectedSubmoduleCount - 1].

Output

xValid

BOOL

The displayed data is valid. This means the specified Index and AR-ID are valid.

ExpectedSubmoduleCount

DINT

Number of expected submodules within the specified Connect- req.

ExpectedSubmodule

ExpSubmodule

Data of the Expected Submodule that is currectly selected by the input Index.

xModuleDiff

BOOL

There is some mismatch in the submodule configuration

ModuleState

ModuleState

16#FFFF

ModuleState that will be returned to the controller.

ARInfo

SubmoduleState_ARInfo

AR releated information that will be returned to the controller.

IdentInfo

SubmoduleState_IdentInfo

Identification releated infiormaton that will be returned to the controller.