How to differentiate between alarms and events?

Discussion about Code Builder Builder and Winlog language support.
robertoaxt
Posts: 1
Joined: Sun Mar 25, 2018 5:25 am

How to differentiate between alarms and events?

Postby robertoaxt » Sun Mar 25, 2018 5:36 am

I would like to write a code that every hour check for an unacknowledged Alarm and then send an email. But I can not differentiate between Alarms and Events. :shock:

How can I differentiate between alarms and events? :oops:

The function I had written is like this:

Code: Select all

function void hourlyAlarmCheck()
#STARTUP
    int maxEvent = GetTotalEvnGates();
    int i;
    string name;
    int id;
    while (true)
        for i = 0 to maxEvent-1 do
            name = GetEvnGateGateID(i);
            id = GetEvnGateNID(i);
            if(GetEvnGateValue(name, id) == true && GetEvnGateAckedStatus(name, id) == false) then
                  SendMailToGmail(GetEvnGateMsg(name, id));
                  MessageBox(GetEvnGateMsg(name, id),"mail"); //debuging
            end
        end
        Sleep(3600000); //1 hour check
    end
end

Thanks!!! :geek:

User avatar
admin
Site Admin
Posts: 329
Joined: Tue Nov 17, 2009 1:18 pm

Re: How to differentiate between alarms and events?

Postby admin » Tue Mar 27, 2018 8:09 am

Hi,
actually is not possible. I entered your request in the list of future implementation.

Thanks and Best Regards


Return to “Code - Code Builder”

Who is online

Users browsing this forum: No registered users and 0 guests