• Skip to main content
  • Skip to header right navigation
  • Skip to site footer
CDP Studio logo

CDP Studio

The no-code and full-code software development tool for distributed control systems and HMI

  • Doc
  • Why CDP
    • Software developers
    • Automation engineers
    • Managers
  • Products
    • Automation Designer
    • HMI Designer
    • Maritime HMIs
  • Services
  • Use cases
  • Pricing
  • Try CDP

CDP Studio Documentation

  • Protocols - OPC UA I/O
  • EventsToOPC-UA
  • 5.0.0

OPC UA ServerVariableNode OPC UA Server and Client Setup Guides

EventsToOPC-UA

EventsToOPC-UA

OPC UA includes a system for event-handling, similar to how it is done in the CDP Framework. OPC UA also has a special event class called condition events that can carry information about the state of the object that the event is associated with. The condition events will be sent out when some monitored condition changes. Similar to the CDP alarms, the OPC UA condition events have a special event sub-class called alarm events that can be used to indicate that the object is in a state that requires attention.

Read more about the OPC UA events from the OPC UA reference documentation, at events specification.

The EventsToOPC-UA is a block that can be added to the OPC-UA-Server in order to propagate CDP events out to the OPC UA clients as OPC UA events.

To start forwarding CDP events to OPC UA, add an instance of the EventsToOPC-UA block to the OPC-UA-Server. With the default configuration, the block will start to listen to all the CDP events, convert and forward them to the OPC UA clients as OPC UA events. In addition, the block is also able to forward the OPC UA event acknowledge and/or confirm method calls (made by any OPC UA client) back to the CDP event system to acknowledge the corresponding CDP alarm.

EventsToOPC-UA has the following configuration properties:

PropertyDescription
ListenPaths<string>Semicolon-separated list of CDP object paths to listen only. When left empty, all object events are listened to.
EventConverterScript<string>A ChaiScript to calculate the OPC UA event attributes (to the value map named UAEvent) from the CDP event attributes (accessible in the value map named CDPEvent). See Event Conversion ChaiScripts for more information.
UAMethodThatAcknowleges<unsigned char>Flags, that specify what OPC UA method calls (Acknowledge or Confirm or both) are causing the corresponding CDP alarm to be acknowledged.
EventSourceNodeId<string>Together with EventSourceNodeIdType and EventSourceNodeNamespaceIndex properties specifies an OPC UA node that the block is emitting the events from under. By default, a OPC UA Server information object (i=2253) node is used.
EventSourceNodeIdType<string>Together with EventSourceNodeId and EventSourceNodeNamespaceIndex properties specifies an OPC UA node that the block is emitting the events from under. By default, a OPC UA Server information object (i=2253) node is used.
EventSourceNodeNamespaceIndex<unsigned short>Together with EventSourceNodeId and EventSourceNodeIdType properties specifies an OPC UA node that the block is emitting the events from under. By default, a OPC UA Server information object (i=2253) node is used.

You can also add multiple EventsToOPC-UA blocks to OPC-UA-Server with different configurations. Multiple blocks with different ListenPath settings can be useful when different CDP subsystems (like applications or components) events should converted to OPC UA events using very different conversion logic and conversion scripts or they should be sent out from different OPC UA nodes.

OPC UA ServerVariableNode OPC UA Server and Client Setup Guides

The content of this document is confidential information not to be published without the consent of CDP Technologies AS.

CDP Technologies AS, www.cdpstudio.com

Get started with CDP Studio today

Let us help you take your great ideas and turn them into the products your customer will love.

Try CDP Studio for free
Why CDP Studio?

CDP Technologies AS
Hundsværgata 8,
P.O. Box 144
6001 Ålesund, Norway

Tel: +47 990 80 900
E-mail: info@cdptech.com

Company

About CDP

Contact us

Services

Partners

Blog

Developers

Get started

User manuals

Support

Document download

Release notes

My account

Follow CDP

  • LinkedIn
  • YouTube
  • GitHub

© Copyright 2025 CDP Technologies. Privacy and cookie policy.

Return to top