Page 2 of 2 FirstFirst 1 2
Showing results 11 to 20 of 20

Thread: Alarm List

  1. #11
    Join Date
    15.11.2016
    Posts
    97

    Default Re: Alarm List

    Hello,

    You can call a RTFuntion via API:
    this.RtFunctions.Item("Functionname").Start();

    But if you want a cyclic execution its better to use Time Control.
    Configure in the project -> Time Control

    BR

  2. #12
    Join Date
    08.06.2018
    Posts
    12

    Default Re: Alarm List

    Quote Originally Posted by georgk View Post
    Hello,

    You can call a RTFuntion via API:
    this.RtFunctions.Item("Functionname").Start();

    But if you want a cyclic execution its better to use Time Control.
    Configure in the project -> Time Control

    BR

    Ok but if i want to avoid this street and go on with external integration to avoid touching zenon Software, how can i make it works the call and the relative export of alarmItems ?
    Did somebody reach this result ?

    Thanks in advance

  3. #13
    Join Date
    28.02.2013
    Posts
    157

    Default Re: Alarm List

    You mean not touching zenon engineering at all?

    So your requirement is to connect to a zenon runtime and fetch alarm data without having the zenon enigineering available?
    So you don't know which functions are configured with what parameters within the zenon project?

    Regards,
    Felix

  4. #14
    Join Date
    08.06.2018
    Posts
    12

    Default Re: Alarm List

    Quote Originally Posted by felixst View Post
    You mean not touching zenon engineering at all?



    So your requirement is to connect to a zenon runtime and fetch alarm data without having the zenon enigineering available?

    So you don't know which functions are configured with what parameters within the zenon project?



    Regards,

    Felix

    Yes exactly, if i can i would like to keep them separated, with the runtime open, and my mini-extractor in background.
    Actually i'm am connected to the zenon Runtime but my problem is that the alarmItems("*") don't return any item.
    I'd expect that * would return ALL elements

  5. #15
    Join Date
    08.06.2018
    Posts
    12

    Default Re: Alarm List

    Any other hints?

  6. #16
    Join Date
    28.02.2013
    Posts
    157

    Default Re: Alarm List

    You need to work with a QueryFilter:

    Code:
                zProject.Alarm().ResetQueryFilter();
                zProject.Alarm().DynProperties["QueryFilter.IsFromFiles"] = true;
                zProject.Alarm().DynProperties["QueryFilter.EntriesCount"] = 100;
                zAlarmItems = zProject.Alarm().AlarmItems(".");
                for (int i = 0; i < zAlarmItems.Count; i++)
                {
                    zenOn.AlarmItem zAlarmItem = zAlarmItems.Item(i);
                    Console.WriteLine(zAlarmItem.Tagname.ToString() + " Zeit: " + zAlarmItem.Timecomes.ToString());
                }
    Regards,
    Felix

  7. #17
    Join Date
    08.06.2018
    Posts
    12

    Default Re: Alarm List

    Quote Originally Posted by felixst View Post
    You need to work with a QueryFilter:



    Code:
                zProject.Alarm().ResetQueryFilter();
                zProject.Alarm().DynProperties["QueryFilter.IsFromFiles"] = true;
                zProject.Alarm().DynProperties["QueryFilter.EntriesCount"] = 100;
                zAlarmItems = zProject.Alarm().AlarmItems(".");
                for (int i = 0; i < zAlarmItems.Count; i++)
                {
                    zenOn.AlarmItem zAlarmItem = zAlarmItems.Item(i);
                    Console.WriteLine(zAlarmItem.Tagname.ToString() + " Zeit: " + zAlarmItem.Timecomes.ToString());
                }


    Regards,

    Felix

    Thank you Felix.
    I tried your code, i get an error on ResetQueryFilter, my Interop.zenOn.dll probably does not contain that method.
    Anyway the count of the alarms is always 0.


  8. #18
    Join Date
    28.02.2013
    Posts
    157

    Default Re: Alarm List

    What zenon version are you using?



  9. #19
    Join Date
    08.06.2018
    Posts
    12

    Default Re: Alarm List

    Quote Originally Posted by felixst View Post
    What zenon version are you using?



    7.0

  10. #20
    Join Date
    08.06.2018
    Posts
    12

    Default Re: Alarm List

    I want to inform people who helped me in this thread that now i am able to export Alarms that are not acknowledged calling AlarmItems("*").

    The problem remains for the alarms that are acknowledged.

    I'll keep you informed.

    Thank you

Similar Threads

  1. Time format in Event list & Alarm list
    By Mustafa.SA in forum zenon Energy Edition
    Replies: 2
    Last Post: 13th March 2018, 22:03
  2. Time format in Event list & Alarm list
    By Mustafa.SA in forum zenon Supervisor
    Replies: 2
    Last Post: 13th March 2018, 22:03
  3. Alarm doesn't appear at alarm Message List
    By marco.naccini@goriziane.it in forum zenon Supervisor
    Replies: 3
    Last Post: 19th January 2018, 14:38
  4. Replies: 10
    Last Post: 20th October 2013, 23:53
  5. Problems with alarm list and alarm time
    By dario in forum zenon Supervisor
    Replies: 4
    Last Post: 9th November 2012, 13:52

Posting Rules

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •