Jump to content
  • entries
    10
  • comments
    27
  • views
    21,771

Simple Alarm Module

Sign in to follow this  
tmoulder

1,416 views

Did you find this code helpful?  

4 members have voted

  1. 1. Was this code module helpful to you?

    • Yes, as written
      2
    • Yes, with some modifications
      3
    • No
      0
    • Who wrote this buggy junk?
      0

Unitronics has provided us with a powerful and comprehensive alarm system built into the OS. It provides grouping, status conditions, and pre-made screens to interact with. It's a terrific piece of work, and I do not wish to detract from it one bit.

That said, it's also complex and can be tricky to set up. The vast majority of my projects don't need anything that sophisticated. So after several years of working on my own technique, I finally came up with a module that matches just my needs, keeping it simple and sweet.

The attached program is a simple alarm system. It uses the legacy Events FB, a string library to store text for alarms, and UTC date and time stamps. There are 12 entries on the screen, active alarms are highlighted in red, and go white when cleared, leaving a 12-point history behind. The Event Rise FB ensures that all alarms are captured, even if they occur simultaneously.

This module in particular seems ripe for expansion. You could modify it to scroll and add more alarms to the history, and /or use Log to SD for long-term history. But as I said, those just aren't something I generally need.

One limitation that comes to mind is that if more than 12 alarms occur at once, some will be knocked off the list and not visible. To which I say, if you have more than 12 alarms occurring simultaneously, you may have bigger problems than the length of the list :)

Enjoy!

TM

Sign in to follow this  


2 Comments


Recommended Comments

Hi D'Agostino,

If you are asking about my module here, you can choose to import the display using the visilogic "Import" function. Instructions are in the text file in the download.

If you are speaking about the built-in Unitronics function, the truth is, I only ever used it once, and never on the 1040, so I'm not sure myself where to begin. Ask in the general forum and you will find more help there.

Best of Luck!

TM

Share this comment


Link to comment
Guest
Add a comment...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...