CODESYS® OPC UA Communication

OPC UA Server | OPC UA Client | OPC UA PubSub | OPC (DA) Server

Communication via OPC UA: standard interfaces for communication

The CODESYS development environment shows the OPC UA server configuration with symbol set management for data exchange in automation.

CODESYS OPC UA Server

With the CODESYS OPC UA Server, you enable access to variables in your control project. This allows you to exchange data with other systems that have implemented an OPC UA client. The server is already implemented in many CODESYS-compatible controllers. The CODESYS SoftPLC systems include a basic version with a limited scope of exchange data. You can use additional licenses to significantly increase the limit or switch it off completely.

 

Properties:

The logo is property of The OPC Foundation and is used under license.

  • Included in all CODESYS-compatible SoftPLCs (prerequisite: sufficient performance of the target system, TCP/IP stack and real-time clock).
  • Implementation of communication in accordance with the OPC UA specification as per the "Micro Embedded Device Server" profile, based on the OPC Foundation communication stack.
  • OPC UA Server: tested and certified for conformity.
  • Included as a restricted version in all application-based runtime licenses without additional license fees.
  • Convenient integration into project user management.
  • Symbol sets: different information models for different use cases and clients (HMI, cloud, SCADA, etc.).
  • Graphical configurator (Communication Manager) in the CODESYS Development System: release of PLC variables for OPC UA communication with just a few clicks.

 

The CODESYS development environment shows the OPC UA information modeling with object types, methods and data structures for industrial control systems.
  • Seamless integration with the control application
    • Direct access to variables in the control project without additional tools
    • Simple call of implemented methods in the control project possible via OPC UA
    • Integration with alarm configuration: uniform and consistent alarms in HMI and OPC UA clients
  • Two types of server configuration possible:
    • Based on the information model
    • Based on the control application: implicit creation of an information model

CODESYS OPC UA Client

You can use the CODESYS OPC UA Client to connect to variables of any OPC UA server, typically a controller. You use these in your controller project like locally declared variables. The CODESYS OPC UA Client is already implemented in many CODESYS-compatible controllers. The SoftPLC systems from CODESYS include a basic version with a limited scope of exchange data. You can use additional licenses to significantly increase the limit or switch it off completely.

 

The CODESYS environment shows the setup of an OPC UA data source, including server URI and data point access rights.

Properties:

  • Included in all CODESYS-compatible SoftPLCs (prerequisite: sufficient system performance, TCP/IP stack and real-time clock)
  • Support for variable access, method calls, and alarms as well as all available functions in the CODESYS OPC UA Server
  • Usage variants for reading in data for the IEC 61131-3 application and CODESYS Visualization:
    • Convenient configuration in the data source manager
    • Explicit call of library functions within the application

CODESYS OPC UA PubSub

With the publish-subscribe standard as a special part of the OPC UA specification, you can exchange data between two systems with virtually no overhead. The protocol is therefore just as suitable for sensors and actuators as it is for streamlined data exchange between controllers, as the full OPC UA stack is not required.

 

Screenshot of the CODESYS software with a PLC programming interface.

Properties:

  • CODESYS library for data exchange according to the standardized procedure between devices via UDP protocol
  • Licensing per device ("SL" license)
  • Use of function blocks for sending (Publisher) and receiving (Subscriber) data and for configuring communication in the PLC application
  • Execution of the blocks cyclically in a PLC or background task
  • Diagnostic information can be called up at runtime or via visualization for almost all functions
  • Supplied sample project for an easy start
  • Expandability for future protocols and TSN/FLC
  • System requirements on the controller:
    • Implemented system library for socket access to Ethernet
    • Possibility of license storage (via dongle or software container)
    • Can be used in all CODESYS SoftPLCs (see CODESYS Store)

CODESYS OPC (DA) Server

OPC (Open Platform Communications) is a standard interface for accessing process data in automation technology, based on MS Windows technologies. The CODESYS OPC Server is a Microsoft Windows program that is included with the IEC 61131-3 programming system. A license is required to use it: either via a USB dongle (CODESYS Key) or a so-called soft container on the PC on which the CODESYS OPC Server is running.

Diagram of the CODESYS control and communication structure.

Supported specifications according to

  • OPC Common Definitions and Interfaces Version 1.0
  • Data Access Custom Interface Standard Version 1.0a
  • Data Access Custom Interface Standard Version 2.05A
  • Data Access Custom Interface Standard Version 3.0
  • Data Access Automation Interface Standard Version 2.02
  • Alarms and Events Interface Version 1.10
  • Support for hierarchical browsing of variables

Properties:

The logo is property of The OPC Foundation and is used under license.

  • Included with the CODESYS Development System (licensing required)
  • Scope of delivery:
    • OPC Server
    • Server configurator
    • Data logger
  • Use via symbol configuration in the CODESYS project to release the variables to be exported
  • Connections to controllers compatible with CODESYS V3 or V2.3 possible
  • Certified by the OPC Foundation
  • Not recommended for use in new automation projects (the standard is based on platform-bound MS Windows interfaces)

Additional information

 

CODESYS Store How to get

How to get

Downloads

CODESYS for Users (Brochure)

CODESYS - One software. All applications. Your automation solution.

2 MB

25.10.2023

#WeAreCODESYS (Brochure)

CODESYS Users, CODESYS Solution Providers, and millions of CODESYS Devices worldwide.

2 MB

07.11.2023