• 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
  • ActiveAlarmCounter

ActiveAlarmCounter

Add an ActiveAlarmCounter and a CDPEventListener to your component. Both ActiveAlarmCounter and CDPEventListener are found in Sequencer in the Resource tree. Connect the output CDPEvent from CDPEventListener to ActiveAlarmCounter's input CDPEvent. ErrorCount, WarningCount, NotifyCount and TotalCount will give number of active alarms matching the settings done for AlarmFilter and GroupFilter. If one of the counters change value, a CountChanged event (Sequencer event) is emitted. By default, active alarms from all applications in the system are counted. If only specific applications are wanted, update ListenPaths property in CDPEventListener with application-names in the system.

Note: ActiveAlarmCounter correct counting relies on alarm re-report events. Therefore, in order to work correctly, the CDPEventListener needs to have the ListenAlarmReprises property set.

An active alarm has the Set-bit and/or the Unacknowledged-bit set in the 32-bit status-value. Whether an active alarm is counted or not depends on the AlarmFilter and GroupFilter settings.

Arguments

Input Arguments

NameDescription
CDPEventThe incoming alarm-event.
PathSource of alarm-event.
CodeAlarm event code (Set/Clear/Ack).
Status32-bit alarm status,where value 0 indicates that the alarm is OK. Specific bits indicate if the alarm is Set and/or Unacknowledged for different alarm-levels.
EventDataEventData from the alarm, like Group and RDAppList.

Output Arguments

NameDescription
CountChangedA Sequencer event emitted if one of the output counters has changed value.
ErrorCountNumber of alarms with level Error.
WarningCountNumber of alarms with level Warning.
NotifyCountNumber of alarms with level Notify.
TotalCountTotal number of alarms.

Properties

NameDescription
AlarmFilterSelection between UnackOrSet, Set, UnackAndSet and Unack. Decides which alarms to count (Unack- or Set-bit, Set-bit, Unack- and Set-bit, Unack-bit).
GroupFilterSemicolon-separated list of alarm group(s). When left empty, all alarms are counted independent of the alarm's Group-property. The Group-property of an alarm can be empty (default), or consist of one or more semicolon- separated group-names. If one of the group(s) in the alarm's Group-property matches one of the group(s) listed in GroupFilter, the alarm is counted (if AlarmFilter also matches).
TimeoutOldAlarmsWhen an alarm-event is received, and when receiving re-reported active alarms (default every 15s), timestamp is registered. If an alarm times out (given by TimeoutOldAlarms [s]), it is removed from list and not counted anymore.

Dump active alarms to message log

In ActiveAlarmCounter Property-section, there is a property called DumpActiveAlarms. When property button is toggled then the list of current alarms matching the filter settings will be printed to the application output. In addition, active alarms not matching the filter settings will also be printed.

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