The CODESYS OPC UA Client can be used to connect to any OPC UA servers and exchange data with them. The client provides an API to connect to an OPC UA server and execute the different kind of OPC UA requests.
The OPC UA Client API supports the following services:
Publish (Handled by the Runtime itself)
The client is able to handle both types of monitored items (event and sampling). The only difference in handling is the callbacks that are called for both types.
Security: The OPC UA client uses the existing security related runtime interfaces to handle the encryption algorithms and certificates. The client registers itself to the certificate store for easy configuration of the client certificates.
Basic256Sha256 (Sign, Sign_and_Encrypt)
User token policy:
An example demonstrating how to use the API is available in the CODESYS Store: ‘OPC UA Client Example’.
Additionally it is possible to connect the OPC UA Client to an OPC UA Server within the CODESYS IDE via the “Data Source Manager” object. OPC UA Servers can be added online or offline.
Online: Using the IP adress the client connects to the server and detects the existing variables and types. The user can select the objects to be browsed.
Offline: Using an OPC UA information model file the client reads the variables and types from the information model. A connection to the server is not required.
Also see [CODESYS Online Help](https://help.codesys.com/webapp/_cds_obj_data_source_communication_opc_ua_server;product=codesys).
CODESYS Development System V220.127.116.11 or higher
CODESYS Control V18.104.22.168 or higher
Supported Platforms/ Devices
CODESYS SoftPLC systems
Note: Use the tool “Device Reader” to find out the supported features of your device (free of charge component of CODESYS Development System).
Single Device License: The license can be used on the target device/PLC on which the CODESYS Runtime System is installed.
Licenses are activated on a software-based license container (soft container), which is permanently connected to the controller. Alternatively the license can be stored on a CODESYS Key (USB-Dongle). By replugging the CODESYS Key, the license can be used on any other controller
Note: In demo mode, the software runs for two hours without a license. After that, a manual restart is required.
Optional: CODESYS Key