This topic contains 1 reply, has 1 voice, and was last updated by  John 6 years, 6 months ago. This post has been viewed 1172 times

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #20056

    John
    Keymaster

      I would like to show a different alarm text depending on another variable. The idea is that if a device is connected then instead of using al_515 use al_515_egs02. Is this possible?

      al_515,BOOL, INTERNAL, “value:=PLC_ai16_alarmas_0_1999[51][5]; label:=”"Alarm 515″”; comment:=”"NO CHANGES ON MEASURED POWER “”; style=alarm; ”
      al_515_egs02,BOOL, INTERNAL, “value:=PLC_ai16_alarmas_0_1999[51][5]; label:=”"Alarm 516″”; comment:=”"EGS-02 LOW POWER SIGNAL”"; style=alarm; “

      #20057

      John
      Keymaster

        It is not possible to directly change an alarm text because the ‘label’ and ‘comment’ attributes do not support expressions. However you can filter the appearance of one or the other alarm by incorporating an additional condition in the ‘value’ attribute of each of them so they only activate when they should. For example if a variable determining a device is ‘emabledDevice’ then you can have:

        value = enabledDevice==1 && PLC_ai16_alarmas_0_1999[51][5];

        In such case the alarm will only be activated when enabledDevice is 1, you get the idea.

      Viewing 2 posts - 1 through 2 (of 2 total)

      You must be logged in to reply to this topic.

      Copyright © SweetWilliam, S.L 2009-2013. All rights reserved.
      Science and Technology Park of the University of Girona, Emili Grahit, 91 (NarcĂ­s Monturiol building, Office P3-B03) 17003-Girona. Phone +34972183244