FB_iec61850ConnectionClass

FB_iec61850ConnectionClass 1:

The function block FB_iec61850ConnectionClass implements interfaces for establishing communication and exchanging data between the TwinCAT PLC server application and the IEC 61850 client. A function block instance implements a server session (a server connection with a remote client).

Namespace: Tc3_iec61850
Library: Tc3_iec61850 (Tc3_iec61850.compiled-library)

Inheritance hierarchy

FB_iec61850ConnectionClass

FUNCTION_BLOCK FB_iec61850ConnectionClass IMPLEMENTS
    I_ScsmConnectionClass,
    I_ScsmAbortIndEventSink,
    I_ScsmAssociateIndEventSink,
    I_ScsmReleaseCnfEventSink,
    I_ScsmReleaseIndEventSink
VAR_INPUT
    settings : FB_ScsmConnectionSettingsClass;
END_VAR

FB_iec61850ConnectionClass 2: Interfaces

Type

Description

I_ScsmConnectionClass

Interfaces for establishment of communication and data exchange.

I_ScsmAbortIndEventSink

Interface of the Abort service event handling routine.

I_ScsmAssociateIndEventSink

Interface of the Associate service event handling routine.

I_ScsmReleaseCnfEventSink

Interface of the Release service event handling routine.

I_ScsmReleaseIndEventSink

Interface of the Release service event handling routine.

FB_iec61850ConnectionClass 3: Inputs

Name

Type

Description

settings

FB_ScsmConnectionSettingsClass

Protocol settings for the communication layer.

FB_iec61850ConnectionClass 4: Methods

Name

Description

Execute

This method triggers the execution of the communication layer.

AssociateRsp

Responds to the service: Associate.

ReleaseReq

Enables the service: Release.

ReleaseRsp

Responds to the service: Release.

AbortReq

Enables the service: Abort.

FB_iec61850ConnectionClass 5: Methods of event handling (callback methods)

Name

Description

OnAssociateInd

User-defined Associate service event handling routine.

OnReleaseCnf

User-defined release service event handling routine.

OnReleaseInd

User-defined release service event handling routine.

OnAbortInd

User-defined abort service event handling routine.

FB_iec61850ConnectionClass 6: Properties

Name

Type

Access

Description

eLinkStatus

E_ScsmLinkStatus

Get

Server Link status. Link status of the network adapter (accepted sockets).

eState

E_AsyncEnvironmentState

Get

Environmental state of the communication connection.

ipSettings

I_ScsmConnectionSettingsClass

Get

Protocol settings for the communication layer.

ipServer

I_ScsmServerClass

Get,Set

Interface pointer of an object that implements the server (container).

ipAssociateInd

I_ScsmAssociateIndEventSink

Set

Interface pointer of an object with a user-defined implementation of the event handling routine: OnAssociateInd.

ipReleaseCnf

I_ScsmReleaseCnfEventSink

Set

Interface pointer of an object with a user-defined implementation of the event handling routine: OnReleaseCnf.

ipReleaseInd

I_ScsmReleaseIndEventSink

Set

Interface pointer of an object with a user-defined implementation of the event handling routine: OnReleaseInd.

ipAbortInd

I_ScsmAbortIndEventSink

Set

Interface pointer of an object with a user-defined implementation of the event handling routine: OnAbortInd.

ipAssociation

I_ScsmAssociationClass

Get

Interface pointer of an object that identifies the server connection (session).

sDesc

STRING

Get,Set

The description of the server connection (session).