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
Reason for STATE.ERROR
Component
xActive
BOOL
True
🠖 STATE.OPERATIONALComponent
eState
See: State Transition Diagram at STATE
Component
Input Const
itfAsyncProperty
itfTSNContext
uiPublisherId
UINT
itfIPAddress
uiPort
UINT
UDP.PORT
itfPublisherIP
uiPublisherPort
UINT
UDP.PORT
itfSubscriberIPSet
itfConnectionDiagnostics
Input
itfConfiguration
Output
itfDiagnostics
itfConnection
Methods:
Structure: