Connection (FB)

FUNCTION_BLOCK PUBLIC FINAL Connection EXTENDS Component IMPLEMENTS IConnection, IGroupElement, IConnection_Internal

This Function Block represents a Pub Sub Connections.
A Pub Sub Connection is a combination of protocol selection, protocol settings and addressing information.
See IConnection for more details.
If necessary create a ConnectionDiagnostics instance and connect it to itfConnectionDiagnostics.
It will offer the diagnostic data of an Pub Sub Connection via the itfDiagnostics output.
The udiPublishingInterval is set in WriterGroup function block.

See: PubSubConnectionType at OPC Foundation.

InOut:

Scope

Name

Type

Initial

Comment

Inherited from

Output

eErrorID

ERROR

Reason for STATE.ERROR

Component

xActive

BOOL

True 🠖 STATE.OPERATIONAL

Component

eState

State

See: State Transition Diagram at STATE

Component

Input Const

itfAsyncProperty

IAsyncProperty

itfTSNContext

ITSNContext

uiPublisherId

UINT

itfIPAddress

IIPAddress

uiPort

UINT

UDP.PORT

itfPublisherIP

IIPAddress

uiPublisherPort

UINT

UDP.PORT

itfSubscriberIPSet

IIPAddressSet

itfConnectionDiagnostics

IConnectionDiagnostics

Input

itfConfiguration

IConfiguration

Output

itfDiagnostics

IConnectionDiagnostics

itfConnection

IConnection

Methods:

Structure: