Programming the OPC UA Client

Overview

OPC UA client functionality is delivered in the OpcUaHandling library.

This library contains IEC 61131-3 standard function blocks to include in your application:

The function blocks allow you to:

  • Read/write multiple data items

  • Perform diagnostics

The following function blocks are supported:

  • UA_Connect

  • UA_ConnectionGetStatus

  • UA_Disconnect

  • UA_NamespaceGetIndexList

  • UA_NodeGetHandleList

  • UA_NodeGetInformation

  • UA_NodeReleaseHandleList

  • UA_ReadList

  • UA_WriteList

  • UA_Browse

  • UA_SubscriptionCreate

  • UA_SubscriptionDelete

  • UA_SubscriptionProceed

  • UA_MonitoredItemAddList

  • UA_MonitoredItemOperateList

  • UA_MonitoredItemRemoveList

  • UA_TranslatePathList

  • FB_TimeStamper

For details, refer to the OpcUaHandling Library Guide.

Example: Managing a Read/Write List

This figure shows the function blocks used to read and write items of data managed by a remote OPC UA server:

NOTE: Ensure that OPC UA Server enabled is activated to use OPC UA Client. See OPC UA Server Configuration Tab.