Event Frame notification for ON/OFF valve

Hello!

I've a problem with an Event Frame notification.

I need to calculate the amount of water that passes in a pipe section in the period between the open and the close of the valve.

This is my EvetFrame analysis now: Start Trigger is ZSL=0 (valve opens); End trigger is ZSL=1 (valve closes), Output at close is the amount of water (that now is correctly working).

Could you suggest me a way to set the notification rule so that I can receive an email with 2 timestamps of the moment when the valve opens and the moment when the valve closes?

I've tried a lot of solutions but no one worked.

Thank you very much

 

 

  • By using the Subscription setting for the Notify Option to Event end:


    image.png
    this will allow you to get the event end time (the event has to end before Notifications can know about it).

    There are several ways to insert the EF start and end times into the message format:

    EF Properties from the Content menu will allow you to insert it directly into the message:


    image_1.png
    Another way is to use the timestamp of a reference element attribute; with this, you can select Time Stamp at Start for the start time and Time Stamp at Send for end time:


    image_2.png
    Finally, you can capture the times in EF attributes using data references or the Output at Close (OAC) option of the EF Generation analysis.

    For data references, you can use either formula or string builder with the substitution parameters %StartTime% and %EndTime% and set the Value Type to DateTime.

    For OAC, use the expressions EventFrame("StartTime") and EventFrame("EndTime").

    You can then add the "Value at Send Time" for the attributes to the Message format.

    Here is a sample EF Template:


    image.png.png
    Here is the corresponding EF Gen analysis:


    image_3.png
    Here is a message format:


    image_4.png
    And here is a message generated by all of these:​
    image_5.png
    As you can see, all of the methods generate equivalent results. I hope this was helpful. Please reply back if you have any questions.

  • adding to Brent's answer, if you wanted to be alerted of the valve opening and then alerted again when the valve has closed, then you could select Event Start and End. This is very helpful when the event frame represents something abnormal. Letting users know that the equipment has returned to normal is important too.


    image.png