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
eErrorIDReason for STATE.ERROR
Component
xActiveBOOLTrue🠖 STATE.OPERATIONALComponent
eStateSee: State Transition Diagram at STATE
Component
Input Const
itfAsyncPropertyitfTSNContextuiPublisherIdUINTitfIPAddressuiPortUINTUDP.PORT
itfPublisherIPuiPublisherPortUINTUDP.PORT
itfSubscriberIPSetitfConnectionDiagnosticsInput
itfConfigurationOutput
itfDiagnosticsitfConnection
Methods:
Structure: