Role-Based Acknowledge Permissions & Custom Alarm Comments

Hi everyone,

I’m working with MpAlarmX for a customer project and have run into a couple of issues I can’t seem to solve. We’re using the standard B&R widgets for the alarm interface.

Role-Based Alarm Acknowledge / Reset
We’ve set up different Roles in the PLC, and the customer wants to ensure that users can only acknowledge or reset alarms permitted for their role. However, I can’t find any configuration options to accomplish this.

I initially thought we could handle the acknowledge functionality in our own code — maybe by turning the Acknowledge button into a standard variable — but that seems only feasible for AcknowledgeAll. For individual alarms, we only get the list position when an alarm is selected, not the actual alarm ID or reference. This means we don’t know what the user selected.

Is there any built-in option for this kind of role-based acknowledging, or a known workaround to implement it ourselves?

Custom Alarm Comments by Operators
Another requirement is that operators or maintenance engineers can add custom comments to specific alarms, such as:

Alarm: “Sensor value too high”
Comment: “Broken sensor” or “Recalibrated sensor”

These comments should also be stored and visible in the exported alarm history.

Is there any built-in option for this, or a known workaround to implement it ourselves?

Any advice, tips, or examples would be greatly appreciated!

Thanks in advance!

Hello,

I am not aware of a standard setting supporting your requests. But i am far away of beeing an expert about MpAlarmX.

First i would recomend to check the Advanced settings available in the MpAlarm Configurations. The visibility can be toggled by the green-qube Symbol in the Editor Header.


Adding addtional Information to an Alam can be done via snippeds configured in the Alarm Configuration. Via text-Placeholder you can add these Texts to an Alarm. But you would have to externaly manage the storage. Depending on the amount of alarms this gets fast out of usability.

I know that it is possible to use MpAlarmXConfig to Edit alarms during runtime. This would also be an option to change the contend of a Text.


If you don’t use the standard widget but instead the AlarmXUI functionblock, you would have more control about what is displayed and the acknowledge. - We once used them simultaiously to and the Axis Backtrace Alarm Details to an Visu, if a Axis Alarm was selected by the coustomer.

An different approach would be to disable the acknowledge for all alarms and only do it via Function mpAlarmReset() in the Application after checking the logged in user-level.

I know, all not the best ideas but maybe its an beginning.

Greetings
Michael

1 Like