Filtering Active Alarms by List

Hi B&R community,

I see that AlarmXCore has a built-in counter of active alarms, but to my understanding this counter includes all alarms in the lists in the AlarmXCore. Are there any built-in counters for tracking alarms in individual lists of alarmXcore instead of all of them at once?

Thank you!

Hi @Jessy_Filgueira ,

No, there are no separate built-in counter variables within the MpAlarmXCore function block to track active alarms for individual lists

The ActiveAlarms output tracks the global sum of all active alarms registered to that specific core instance.

However, you can achieve list-specific counters by using the following options:

Solution 1: Use Multiple MpAlarmXCore Blocks Creating Alarms with MpAlarmXConfigAlarm takes very long - #2 by patrick.tanner

You can split your alarm configuration into multiple MpAlarmXCore instances (e.g., one core for the engine, one for safety, one for logistics).

  • Separate Counters: Each MpAlarmXCore function block will give you a dedicated ActiveAlarms count for its respective list.

  • Maintain One UI List: If you still need a single, master alarm list on your HMI, you can link all the separate cores hierarchically using the MpComLink() function or MpComGroup components to escalate the individual alarms up to a master UI list.

Solution 2: Query the Alarms via PLC Code

If you must keep all alarms inside a single MpAlarmXCore, you can calculate the active count per group or category programmatically in your IEC code.

  • Map by Category/Severity: Assign a specific category name or severity level to the alarms belonging to each distinct list.

  • Check Trigger Status: Since alarms are triggered by PLC variables (such as an array of booleans), write a simple loop to count how many trigger bits within that specific category are currently TRUE.

Ciao
Valerio

Thanks for the response! These suggestions seem like a good alternative, I’ll give them a try.

Hi @valerio.manenti ,

I implemented your first solution, and it is working well for the functionality I needed. I am now trying to display on mappview UI, but am having issues with the alarms not being displayed in the alarmList widget using reference of MpComGroup. I did not use MpComLink(). I checked the OPC UA diagnostics page and there is an error for the AlarmList link being inactive. Do you know what steps are needed to activate the MpComGroup and get past this error?

I’m currently running the following versions:

  • Automation Studio=6.7.0.187
  • Automation Runtime=6.7.5
  • Visual Components=6.0.0
  • OPC UA C/S=6.6.1
  • Mapp Services=6.5.1
  • Mapp View=6.5.0

Thanks.

Hi Jessy,
you have to to use the MpLink of the “main” core for the alamList widged.
Furthermore you have to escalate the alarms in the “sub-cores”.

Best regards
Simon

Hi Simon,

Just to clarify, this should be the alarm configuration structure?

With the sub-cores escalated and the main-core is not.

Kind Regards,

Jessy

Hi Jessy,
Each “level” can have only one alarm core, meaning you must create a group for each core. You can use these groups to create further hierarchies. In my experience, you don’t necessarily need a group at the very top (we don’t have one). We also don’t use alarm lists at the top level, but that should be possible. We use the top-level alarm core solely for display on the HMI. And you need to keep in mind which “level” you need to perform each action on. Alarm set, reset, and check must be performed using the core’s own MpLink. Check reaction and acknowledge must be performed using the MpLink of the top-level core. For the alarm list in the HMI, you also use the MpLink of the top-level core.
Best regards,
Simon