<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent posts to Alarm Manager - notiifying which instance has fired alarm event</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/f0666b2d87/" rel="alternate"/><link href="https://forge.codesys.com/forge/talk/Engineering/thread/f0666b2d87/feed.atom" rel="self"/><id>https://forge.codesys.com/forge/talk/Engineering/thread/f0666b2d87/</id><updated>2020-05-29T20:40:38.017000Z</updated><subtitle>Recent posts to Alarm Manager - notiifying which instance has fired alarm event</subtitle><entry><title>Alarm Manager - notiifying which instance has fired alarm event</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/f0666b2d87/?limit=25#a0f9" rel="alternate"/><published>2020-05-29T20:40:38.017000Z</published><updated>2020-05-29T20:40:38.017000Z</updated><author><name>i-campbell</name><uri>https://forge.codesys.com/u/i-campbell/</uri></author><id>https://forge.codesys.comdbe16dd3beaad75c6b7dbe33070cf17afd0a834e</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Use this to get the instance path from inside the FB.&lt;br/&gt;
&lt;a href="https://help.codesys.com/webapp/_cds_pragma_attribute_instance_path;product=codesys;version=3.5.15.0" rel="nofollow"&gt;https://help.codesys.com/webapp/_cds_pragma_attribute_instance_path;product=codesys;version=3.5.15.0&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Have a global variable where you write some identifying info from the instance path (eg Standard.RIGHT())&lt;br/&gt;
Reference this variable as a latch variable of your alarm.&lt;/p&gt;
&lt;p&gt;reference the latch variable in your message&lt;br/&gt;
"Message: PartsDeficit at Station 1 - level: &amp;lt;latch1&amp;gt; (“&amp;lt;latch1&amp;gt;” is a placeholder for latch variable 1.)"&lt;br/&gt;
&lt;a href="https://help.codesys.com/webapp/_cds_setting_up_an_alarm_configuration;product=codesys;version=3.5.16.0" rel="nofollow"&gt;https://help.codesys.com/webapp/_cds_setting_up_an_alarm_configuration;product=codesys;version=3.5.16.0&lt;/a&gt;&amp;lt;/latch1&amp;gt;&amp;lt;/latch1&amp;gt;&lt;/p&gt;
&lt;p&gt;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?&lt;/p&gt;
&lt;p&gt;It would be interesting to see a sample project of what you end up doing if you have time to post one.&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Alarm Manager - notiifying which instance has fired alarm event</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/f0666b2d87/?limit=25#a481" rel="alternate"/><published>2020-05-29T19:27:43.436000Z</published><updated>2020-05-29T19:27:43.436000Z</updated><author><name>lota</name><uri>https://forge.codesys.com/u/lota/</uri></author><id>https://forge.codesys.comab394916f5f67dff9fdae197e8ed2c372d03aece</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hi All&lt;/p&gt;
&lt;p&gt;I have about 12 instances of a FB, all can trigger the same alarms in the alarm manager.&lt;br/&gt;
I'm trying to find a way to let the user know which of the instances has trigger the alarm.&lt;br/&gt;
any ideas?&lt;/p&gt;&lt;/div&gt;</summary></entry></feed>