• 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

  • Framework - Sequencer
  • CDPEventListener

CDPEventListener

CDPEventListener

The CDPEventListener is a block that listens to CDP object events (like CDP alarms set or cleared) and emits them as sequencer events immediately.

The CDPEventListener is useful when the application must take some immediate actions when some sort of CDP event has been reported by some object in the CDP system. Unlike the other CDP event-related sequencer block EventLogReader, the CDPEventListener needs no CDP Logger to be existing in the system. Also, the CDPEventListener emits the sequencer event immediately after the CDP object event has been reported, unlike the EventLogReader block, which has a delay caused by the CDP Logger that has to log the event first and only then EventLogReader can notify about it, from the logger database.

Events

NameInput/OutputDescription
CDPEventOutputWill be emitted (with arguments containing the event data) for each CDP object event reported
InitInputStarts the CDP object event emitting to CDPEvent. This event is mandatory to be sent when the WaitForInit is set.

Arguments

NameDescription
PathThe path (full Routing) to the object that generated the CDP event
IdThe unique identifier of the CDP event
CodeCDP event code flags. See CDP Event Code Flags for details.
StatusThe new status of the object that caused the CDP event after the CDP event occurred. For alarms see the Alarm Status Defines in CDPAlarm documentation.
TimestampThe Unix epoch timestamp when the CDP event occurred in the unit specified by the TimeUnit property
TextOptional text sent with the CDP event.
LevelOptional level data (for example sent with CDPAlarm events).
DescOptional description sent with the CDP event. Describes the object that emitted the CDP event.
EventDataSemicolon-separated name=value pairs containing other optional data sent with the CDP event.

CDP Event Code Flags

Common event codes used in the CDP framework (note multiple flags can be set at the same time)): Common event codes used in the CDP framework (note that multiple flags can be set at the same time):

NameCodeDescription
AlarmSet0x1The alarm's Set flag/state was set. The alarm changed state to "Unack-Set" (The Unack flag was set if not already set).
AlarmClr0x2The alarm's Set flag was cleared. The Unack state is unchanged.
AlarmAck0x4The alarm changed state from "Unacknowledged" to "Acknowledged". The Set state is unchanged.
AlarmReprise0x40A repetition/update of an event that has been reported before. Courtesy of late subscribers.
SourceObjectUnavailable0x100The provider of the event has become unavailable (disconnected or similar).
NodeBoot0x40000000The provider reports that the CDPEventNode has just booted.

Properties

NameDescription
ListenPathsSemicolon-separated list of CDP object object paths to listen on. When left empty, all object events are listened.
ListenAlarmReprisesWhen set to true, then the block listens (and emits) alarm reprise events.
TimeUnitUnit of the Timestamp argument. Can be set to Second, Millisecond, Microsecond or Nanosecond since epoch (Unix timestamp).
WaitForInitWhen set, then at application startup the emitting of CDPEvents will be held back until the Init event is received
HistoryPoolSizeMax number of past events that will be kept in the block pool to be re-reported on Init

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