Filtering Active Alarms by List

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