Showing results 1 to 3 of 3

Thread: get Alarmclass name at RT start

  1. #1
    Join Date
    09.04.2014
    Posts
    9

    Default get Alarmclass name at RT start

    Hello,
    is there a way to get the name (and not the ID) of the alarmclass designated for a variable when it reaches a Limit at the RT?

    I have to alarm classes in my Project:
    0 - Info
    1 - Error

    myVar has at Limit 1 the Alarm 1 - Error.

    With this I get the ID at starting the RT:
    this.Project.Variables().Item("myVar").Limits().Item(1).AlarmClass

    So I get a 1 and I would like to get the name (Error).

    Is there a way to do this?

    Thanks.

    Cis

  2. #2
    Join Date
    08.08.2013
    Posts
    44

    Default Re: get Alarmclass name at RT start

    Hi cisnetandazo,

    yes, it is possible.
    You can get the name of an AlarmClass in the following way:

    this.Variables().Item("myVar").get_DynProperties("Limits[1].ClassName")


    BR
    Christian
    Last edited by christian.bauer : 20th October 2014 at 09:29

  3. #3
    Join Date
    09.04.2014
    Posts
    9

    Default AW: Re: get Alarmclass name at RT start

    Hi Christian,
    that is exactly what I needed. Thanks a lot.
    Cis

Similar Threads

  1. The project does not start If ...
    By natali in forum zenon Supervisor
    Replies: 4
    Last Post: 4th February 2013, 00:11
  2. Erron on AlarmClass StatusVar
    By davide.galigani in forum VBA
    Replies: 1
    Last Post: 17th May 2012, 17:08
  3. No start project was found!
    By douglasm in forum zenon Operator
    Replies: 7
    Last Post: 23rd June 2009, 07:33
  4. start different projects on CE
    By sebastiank in forum zenon Operator
    Replies: 0
    Last Post: 25th September 2007, 08:14

Posting Rules

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