I have about 12 instances of a FB, all can trigger the same alarms in the alarm manager.
I'm trying to find a way to let the user know which of the instances has trigger the alarm.
any ideas?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Have a global variable where you write some identifying info from the instance path (eg Standard.RIGHT())
Reference this variable as a latch variable of your alarm.
Hi All
I have about 12 instances of a FB, all can trigger the same alarms in the alarm manager.
I'm trying to find a way to let the user know which of the instances has trigger the alarm.
any ideas?
Use this to get the instance path from inside the FB.
https://help.codesys.com/webapp/_cds_pragma_attribute_instance_path;product=codesys;version=3.5.15.0
Have a global variable where you write some identifying info from the instance path (eg Standard.RIGHT())
Reference this variable as a latch variable of your alarm.
reference the latch variable in your message
"Message: PartsDeficit at Station 1 - level: <latch1> (β<latch1>β is a placeholder for latch variable 1.)"
https://help.codesys.com/webapp/_cds_setting_up_an_alarm_configuration;product=codesys;version=3.5.16.0</latch1></latch1>
The problem here is if two trigger, the latch only shows the variable contents when the alarm first goes high, but maybe this is ok?
It would be interesting to see a sample project of what you end up doing if you have time to post one.