MappAlarm - no Alarm Line when in Initup

Hello together,

I use the MappAlarm component. I use it for more or less just to make the alarms visible. In background i have there a selfmade software which collects and specifies the alarms.

In the end the following MpAlarmXSet(pstObj->pMPLink,aucStringName) is used in order to transfer the alarm to MpAlarm.

My system at least starts in the initup.
I have now found out using MpAlarm in InitUP does not work.
In order to solve i just set a PV in Init to True an further poll it in Cyclic and start there the the function MpAlarmXSet(pstObj->pMPLink,aucStringName).
I have found out that doing it in the first cycle in cyclic it does also not work.
The meaning of “does not work” is: No text will shown in the AlarmLine

At least i tried to wait some time when the system is on “Run” for about 5 to 10 Seconds. After this time when i start MpAlarmXSet(pstObj->pMPLink,aucStringName) the corresponding Alarmtext is shown immediateliy.

So ist there any Status “ready!” or what ever i have to wait in order to use mpAlarmXCore?

Thanks

You should wait on the MpAlarmXCore.Active = TRUE.

1 Like

Thanks for help.
Now i know to which event i have to wait.
In the end i have to change several Issues on my software because some objects in my software use at least in initup some checks e.g. broken wire at analog input and carry out the error.
i probably need to put a fifo between in order to take care of this issue.