Mappview snipped alarmsystem

Hy there

i use the mapview alarmcore.
I try to set an alarm with language dependency.
I have there an alarm which includes a various number - its from a inverter.
I configured as followed:

  1. Create a localised textsource with a couple ID´s. One of them is “Fehler am Frequenzumrichter Nummer: {#::visual:ulFehlernummer2.2lf}”.
    ID: FehlerFU.
  2. create a new error in alarmxcore with message text: {$IAT/Alarme/FehlerFU}
  3. the pv “visual:ulFehlernummer2” is already activated in opc Editor.
  4. The result in the error line is: Fehler am Frequenzumrichter Nummer: ?Nul.

I changed the pv variable also to a global and also to a textsnipped. Every time the same.
i put a numeric output widged on a page and there the value of the pv is shown right.

It seems for me there is kind a missing binding,

i dont know what´s wrong there.
is there anybody who can give some advice?

Raimund

Hi!

Up to my knowledge it is not possible to use OPC-UA variables in an alarm message/test. If you want to use the values of one or more PVs in your alarm messages, you will have to use snippets.

As described in the Help, you create a snippet with a unique Key (e.g. MyAlarmSnippet) and select the process variable you want to insert the value of. You then use {&MyAlarmSnippet} inside your texts and MpAlarmX will replace it with the value the PV has at the moment the alarm is set.

PS: Sorry, I can’t seem to attach screenshots at the moment… I hope the textual description (or help link) is helping you already… :wink:

Michael is right, you have to use alarm snippets for that.

Hallo Jaroslav,
so far i have understand it.
I have now the number inside the text as i want.
So it is not possible to mix Snippets which are defined in the snipped folder inside the alarmsystem?
I tried to use a snipped in the localised Texts which are configured to the alarmsystem. This also dont work.

So the following would work


image

But if i combine a snipped inside the localised textgroup it will only show the text and “?Nul” - depending of the language- but not the value.
I tried it with a global datasource, a local datasource and and with a snipped shown below. The snipped is in the binding list included
image
image

My final match would be to replace the number with a text. The number which is used now would be therefore the index for a localised textgroup by using a snipped in order to show e.g.
“Error inverter: {snipped number}, {snipped for various text of number}”
→ e.g. “Error inverter: 55, STO tripped”

I thought this would be possible

Raimund

I’m going off of memory from a few years back and don’t have any example to post or time to make one at the moment.

I don’t believe MpAlarm queries the localizable text system (i.e. the AR Text System) when alarms are triggered, but keeps the text in memory, loaded at boot (or changed by the MpAlarmXConfigAlarm function block). So if you use the Text system’s formatted data B&R Online Help the string MpAlarmX stores will contain that value of the variable at boot time.

In order to use changing values in MpAlarmX texts, you need to use MpAlarmX snippets, which i believe also have to be configured within the same MpAlarmX config as the alarm is. MpAlarmX builds at runtime with the static texts it grabbed at boot/config with the value of the snippet when the alarm is set.

So short list to check for MpAlarmX snippet issues

  1. Use the localizable text only for static text.
  2. Use the MpAlarmX snippets in the same MpAlarmX config as your Alarm that uses it.
  3. Use the correct MpAlarmX snippet syntax (i.e. it’s NOT the same as the AR Text Systems syntax).
  4. Make sure the MpAlarmX snippet value is ready before the MpAlarmXSet is called, i.e. don’t use the trigger of MpAlarmX to set the snippet value.

If i have time I will try to put together a demo/example project.

Good evening guys.

I got it
I put here a small summary what i want and how to solve

I want a errormessage of an inverter with number an errortext of the inverter in one errormessage
It looks like


The language can be changed

How to solve:

  1. Create a new alarmlist item
  2. Create a localised textgroup for the alarmtext (here: IAT/Alarme)
  3. Create a localised textgroup for the text used by the snipped (here: IAT/Fehler_FU)
  4. Create a snipped inside the alarmsystem. The pv visual:ulFehlernummer2 is the index of the errorcode of inverter
    image
  5. Combine:

    The complete string is “{$IAT/Alarme/FehlerFU_2} {&FehlernummerFU}, {=$IAT/FehlerFU/{&FehlernummerFU}}”

In this case the snipped is first used as a number: {&FehlernummerFU}
and after to choose the textitem in the textgroup “FehlerFU”: {=$IAT/FehlerFU/{&FehlernummerFU}}

In order to get the text of the textgroup by snipping index you need the figure “=” in front.

Notice: I didn´t find a way to resolve “standard” snippets in localised textgroups which are use in the alarm system. You will get ?Nul.

Good luck for all who try this also