FB-Name

UA_Disconnect

This Function Block is used to close a transport connection of an OPC UA session.

VAR_INPUT

B

Execute

BOOL

On rising edge connection is terminated.

B

ConnectionHdl

DWORD

Connection handle of connection to be closed.

B

Timeout

TIME

Maximum time to close the connection.

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.

Notes: Calling UA_Disconnect (even in case of timeout or error) will release the ConnectionHdl, all node-handles and MonitoredItems.

UA_Disconnect

BOOL

Execute

Done

BOOL

DWORD

ConnectionHdl

Busy

BOOL

TIME

Timeout

Error

BOOL

ErrorID

DWORD