Skip to main content

Example: OPC UA Data Source

Product: CODESYS OPC UA

The example shows how to configure a CODESYS data source in connection with an OPC UA Server. The example contains two projects, OPC_UA_SERVER and OPC_UA_CLIENT, with one application each.

Description

In the application under the Application_DataSource server, different values are written via Server_PRG and transmitted via the symbol configuration.

In the client, a Data Source Manager has been added in the application in order to read the sent data. In Main_PRG, the instance can be accessed directly.

Additional information

Important

  • The connection to OPC UA servers is possible only via an IP address and not a host name.

  • To establish secure server–client communication, the CODESYS Security Agent has to be used to generate a client certificate on the controller before the connection is established.

System requirements and restrictions

Programming system

CODESYS Development System (version 3.5.17.0 or higher)

Runtime system

CODESYS Control Win (version 3.5.17.0)

Add-on components

Note

_example_icon.png DOWNLOAD Project

After installing the package, you will find the sample project in the directory C:\Users\<user>\CODESYS Examples\OPC UA Client Example.