2 Replies Latest reply on Feb 24, 2018 12:54 AM by Mallesh Giduthuri

    Resettable PE tags

    Mallesh Giduthuri

      Hi,

       

      Source tags are resettable(ascending order ) tags, which resets daily around 1 or 2 minutes past the 07:00. I do want to set a condition where PE tag will trigger last value (Max) before source tag reset.

       

      Ex: A is a PE tag which have values as below. As per below logic PE tag triggering value 610 at 07:00 (approximately).

       

      (tagmax('A','y+7h','t+75m')-tagval('A','y+7h'))+tagval('A','t+7h')

       

      Example values:

      06:30  AM- 125

      06:55  AM - 134

      07:01:20 AM - 138

      07:02:40 AM - 139

      07:03:01  AM- 0.25

      07:20:25 AM - 10.2

       

      I have updated the scan frequency to read value at 07:05:00 as source tags resets around 1 or 2 minutes past the 07:00. Now PE tag is triggering value at 07:05 but giving lesser value as same as earlier case. Please refer below attached screenshot for reference

       

       

       

       

       

      Thanks,

      Mallesh

        • Re: Resettable PE tags
          KenjiHashimoto

          I don't know why it shows different number. But there should be some difference between when PE runs at 07:05 and when you press Evaluate button.

          As a troubleshooting, you can create these 3 tags.

          Then you can compare which syntax contains problem. (Compare archived values and press evaluate button)

          tagmax('A','y+7h','t+75m')

          tagval('A','y+7h')

          tagval('A','t+7h')

          By the way why do you use "t+75m" for tagmax? Is there a possibilities that t+75m value is higher than 07:05 value?

          Also PE is old technology, I like to use analysis instead of PE. it can do backfill/ recalculate.