Welcome Guest ( Login | Register )



All times are UTC - 7 hours [ DST ]



Post new topic Reply to topic  [ 12 posts ]  Go to page 1, 2  Next
Author Message
 Post subject: Alarm Banner
PostPosted: Tue Oct 02, 2012 2:59 am 

Joined: Tue Nov 22, 2011 3:54 am
Posts: 40
Location: Gjerlev, Denmark

Offline
Hello

Is it possible to make a Alarm banner (With the alarm text included)

- Emil

_________________
--
Emil Gundersen
JCJelektro.dk


 Profile  
 
 Post subject: Re: Alarm Banner
PostPosted: Tue Oct 02, 2012 9:01 am 

Joined: Tue Mar 13, 2012 9:53 am
Posts: 824

Offline
One way is to create a script in the alarm server and then write the alarm text to a tag. Then associate that tag with an AnalogNumeric box on your screen. What ever is in the tag is then displayed.

Code:
    public partial class AlarmServer
    {
      
      void Default_AlarmItem0_AlarmActive(System.Object sender, System.EventArgs e)
      {
         Globals.Tags.Tag1.Value = "My Alarm Text";
      }
      
      void Default_AlarmItem0_AlarmAcknowledge(System.Object sender, System.EventArgs e)
      {
         Globals.Tags.Tag1.Value = "";
      }
    }

_________________
Best Regards,
Mark Monroe

Beijer Electronics, Inc. | Applications Engineer


 Profile  
 
 Post subject: Re: Alarm Banner
PostPosted: Tue Feb 12, 2013 3:42 am 

Joined: Wed Jan 23, 2013 2:01 am
Posts: 33

Offline
To continue this topic : I would like to know how can I write on a tag (string) the last active alarm appears to display it on a "text baneer". Could you help me?


 Profile  
 
 Post subject: Re: Alarm Banner
PostPosted: Tue Feb 12, 2013 5:12 am 
User avatar

Joined: Thu Nov 29, 2012 2:27 pm
Posts: 92

Offline
You can create a banner (that shows the first active alarm).

Add a alarmviewer that you remove the column headers from and set the number of rows to 1 and handle set the filter option to hide normal alarms.

Below is a example I made from the alarm sample included in iX.


Attachments:
Alarm_Banner_1.png
Alarm_Banner_1.png [ 103.5 KiB | Viewed 4785 times ]
Alarm_Banner_2.png
Alarm_Banner_2.png [ 106.62 KiB | Viewed 4785 times ]
Alarm_Banner_3.png
Alarm_Banner_3.png [ 104.42 KiB | Viewed 4785 times ]

_________________
Edmund Andersson

AITECH AB

Part of Beijer Integrator Group
 Profile  
 
 Post subject: Re: Alarm Banner
PostPosted: Tue Feb 12, 2013 5:35 am 

Joined: Wed Jan 23, 2013 2:01 am
Posts: 33

Offline
I tried this solution but I can't modify the background color of the "alarm banneer" and it stays white... And I don't want white...


 Profile  
 
 Post subject: Re: Alarm Banner
PostPosted: Tue Feb 12, 2013 5:56 am 
User avatar

Joined: Thu Nov 29, 2012 2:27 pm
Posts: 92

Offline
Sorry, the first poster just asked for a alarm baner ;)

No there is no way of changing the background color in this version, but from what I have heard from Beijer there will be more options avalible for the alarmviewer in future releases.

Best Reagards

_________________
Edmund Andersson

AITECH AB

Part of Beijer Integrator Group


 Profile  
 
 Post subject: Re: Alarm Banner
PostPosted: Tue Feb 12, 2013 6:36 am 

Joined: Wed Jan 23, 2013 2:01 am
Posts: 33

Offline
Yes but now, how can i do to have the last alarm appears on a string tag?


 Profile  
 
 Post subject: Re: Alarm Banner
PostPosted: Tue Feb 12, 2013 9:29 am 

Joined: Tue Mar 13, 2012 9:53 am
Posts: 824

Offline
The below code will write the text "My Alarm Text" when AlarmItem0 becomes active. If you do that for each alarm, then the last active alarm will have its text displayed in Tag1.

Code:
    public partial class AlarmServer
    {
     
      void Default_AlarmItem0_AlarmActive(System.Object sender, System.EventArgs e)
      {
         Globals.Tags.Tag1.Value = "My Alarm Text";
      }
     
      void Default_AlarmItem0_AlarmAcknowledge(System.Object sender, System.EventArgs e)
      {
         Globals.Tags.Tag1.Value = "";
      }
    }

_________________
Best Regards,
Mark Monroe

Beijer Electronics, Inc. | Applications Engineer


 Profile  
 
 Post subject: Re: Alarm Banner
PostPosted: Tue Feb 12, 2013 10:24 am 

Joined: Wed Jan 23, 2013 2:01 am
Posts: 33

Offline
But with this script code, if the first alarm is acknowledge, the string tag will be ' ' whereas the second alarm is active. I just want to read the first active alarm on the alarm viewer objet.


 Profile  
 
 Post subject: Re: Alarm Banner
PostPosted: Tue Feb 12, 2013 10:33 am 

Joined: Tue Mar 13, 2012 9:53 am
Posts: 824

Offline
You are correct, there can be multiple alarms active, and that is why there is no active alarm tag. You are going to need to create an array and keep track of the alarms and when they are acknowledged or not acknowledged.

You can create a script module with a C# array and populate the array with any/all active alarms. Then when an alarm is acknowledged you will have to remove that item from the array.

You can use the AlarmItem0_AlarmActive and the AlarmItem0_AlarmAcknowledge events to populate/remove the array values.

_________________
Best Regards,
Mark Monroe

Beijer Electronics, Inc. | Applications Engineer


 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 12 posts ]  Go to page 1, 2  Next

All times are UTC - 7 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to: