7.10 UA_SubscriptionCreate

FB-Name UA_SubscriptionCreate
This Function Block can be used to create a subscription.
VAR_INPUT
BExecuteBOOLOn rising edge subscription will be created.
BConnectionHdlDWORDConnection handle.
BPublishingEnableBOOLActivate the publishing.
BPriorityBYTEPriority of the Subscription in the server relative to the other Subscriptions created by this client.
See OPC 10000-4.
BTimeoutTIMEMaximum time to response.
VAR_OUTPUT
BDoneBOOLFB has completed its task.
BBusyBOOLThe FB is not finished and new output values are to be expected.
BErrorBOOLSignals that an error has occurred within the FB.
BErrorIDDWORDError code.
BSubscriptionHdlDWORDSubscription handle.
VAR_IN_OUT
BPublishingIntervalTIMEPublishing interval (can be changed by the Server revised publishing interval).

Notes: The connection monitoring and the reconnect handling are to be done by the client vendor implementation. The reconnect sequence is defined in OPC 10000-4.

SubscriptionHdl must be unique even if the client is connected to multiple servers.

UA_SubscriptionCreate
BOOLExecuteDoneBOOL
DWORDConnectionHdl BusyBOOL
BOOLPublishingEnableErrorBOOL
BYTEPriority ErrorIDBOOL
TIMETimeout SubscriptionHdlDWORD
TIMEPublishingIntervalPublishingIntervalTIME