I am wondering if it possible to configure an alarm message string dynamically.
What I mean by this is in the alarm configuration, I want to have the message display a string from a text list dynamically at runtime.
Does anyone know how to achieve this?
Cheers,
Louis.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I don't know, if there is a way directly in the alarmmanager. I would solve it with a short piece of program, like this:
VAR  asMessageText:    ARRAY[0..8]OFSTRING:=['No Message', 'Message 1', 'Message 2',                        'Message 3', 'Message 4', 'Message 5',                        'Message 6', 'Message 7', 'Message 8'];  sAlarmMessage:    STRING;END_VARIFbyPowerPackEStopDiag<>0THEN  sAlarmMessage:=asMessageText[byPowerPackEStopDiag];END_IF
In the Alarmconfiguration you can use <latch1> as a placeholder for the text:</latch1>
Maybe this helps?
Good luck
Alfred
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Thanks for the reply,
Yes I ended up doing this (something very similar), In theory it should work fine as the documentation says you can define a STRING as a latch variable. I tried it in the simulation but it would not display the STRING value. I also tried a unicode WSTRING with no success. I will try this method once I have some hardware in front of me to try it on.
Thanks for your help.
Regards,
Louis.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi There,
I am wondering if it possible to configure an alarm message string dynamically.
What I mean by this is in the alarm configuration, I want to have the message display a string from a text list dynamically at runtime.
Does anyone know how to achieve this?
Cheers,
Louis.
Hi Louis!
I don't know, if there is a way directly in the alarmmanager. I would solve it with a short piece of program, like this:
In the Alarmconfiguration you can use <latch1> as a placeholder for the text:</latch1>
Maybe this helps?
Good luck
Alfred
Hi,
Thanks for the reply,
Yes I ended up doing this (something very similar), In theory it should work fine as the documentation says you can define a STRING as a latch variable. I tried it in the simulation but it would not display the STRING value. I also tried a unicode WSTRING with no success. I will try this method once I have some hardware in front of me to try it on.
Thanks for your help.
Regards,
Louis.
Dear poster,
I tried the of the dynamic string alarm texts via <latch1> and it works wonderful in v3.5.11.50 based hardware.</latch1>
Thanks for sharing!
Hi Hermsen,
Much appreciated!
Regards,
Louis.