Function Description

The function block UA_SubscriptionProcessed can be optionally called to check if monitored items have been published. The use of the function block depends on the underlying system.

Representation in FBD

Parameter Description

Input parameters:

Name

Type

Comment

EXECUTE

BOOL

EF is activated continuously while the EXECUTE input is true.

SUBSCRIPTIONHDL

DWORD

Subscription handle.

TIMEOUT

TIME

Maximum time to response

Output parameters:

Name

Type

Comment

DONE

BOOL

FB has successfully completed its task

BUSY

BOOL

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

NOTE: This parameter can be raised even when this block is continuously executed.

ERROR

BOOL

Signals that an error has occurred within the FB. Set to true is either ErrorID or any of the NodeErrorIDs indicates an error.

ERRORID

DWORD

Error code.

PUBLISHED

BOOL

Indicates that variables have been published since the last call. At least one element of the array of ValuesChanged will be true.

Use this function block when the underlying system will automatically publish the variable values. It is recommended that this function block not be used together with the UA_MonitoredItemOperateList function block.

Runtime Error

Refer to the Appendix for a list of OPC UA detected error codes.