FB-Name

UA_SubscriptionCreate

This Function Block can be used to create a subscription.

VAR_INPUT

B

Execute

BOOL

On rising edge subscription will be created.

B

ConnectionHdl

DWORD

Connection handle.

B

PublishingEnable

BOOL

Activate the publishing.

B

Priority

BYTE

Priority of the Subscription in the server relative to the other Subscriptions created by this client.See OPC 10000-4.

B

Timeout

TIME

Maximum time to response.

VAR_OUTPUT

B

Done

BOOL

FB has completed its task.

B

Busy

BOOL

The FB is not finished and new output values are to be expected.

B

Error

BOOL

Signals that an error has occurred within the FB.

B

ErrorID

DWORD

Error code.

B

SubscriptionHdl

DWORD

Subscription handle.

VAR_IN_OUT

B

PublishingInterval

TIME

Publishing 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

BOOL

Execute

Done

BOOL

DWORD

ConnectionHdl

Busy

BOOL

BOOL

PublishingEnable

Error

BOOL

BYTE

Priority

ErrorID

BOOL

TIME

Timeout

SubscriptionHdl

DWORD

TIME

PublishingInterval

PublishingInterval

TIME