Showing results 1 to 3 of 3

Thread: Variable Maximum over 1 day with time stamp of when the maximum was recorded

  1. #1
    Join Date
    25.05.2016
    Posts
    6

    Idee Variable Maximum over 1 day with time stamp of when the maximum was recorded

    I have been asked to make an alarm list entry of a maximum value over 1 day from PLC variable with time stamp of when the maximum was recorded, so the user can look back at the last 30 alarms that will show the maximum value and time the value was recorded for the last 30 days.

    So far i have a system math variable looking fo the MAX of the PLC variable over 1 day then i would like to record the time stamp to another variable then a new maximum is reached. some how then push these two variables in to a alarm that sets once a day.
    not sure if this is the right way to approach this issue?

    Thanks James.

  2. #2
    Join Date
    02.05.2017
    Posts
    28

    Default Re: Variable Maximum over 1 day with time stamp of when the maximum was recorded

    Hello James,

    If I understand your request correctly, a MAX formula with the following settings:
    Time Interval: 1 Day
    Result Output: At the end of the interval
    Initializing at the beginning of the interval: with new value

    and a reaction matrix on the max variable that treats any value as a limit violation and has "In Alarm Message List" configured should suffice.

    After each day there will be an alarm with the maximum value and the 'received' timestamp of the actual time the maximum was reached, and not when the interval ended, which is what you want as far as I understand. I don't know why you would need to map it to another variable. If you really do, it might be tricky to also map the timestamp as the received time, so please clarify if that is really the desired behavior.

    Best Regards
    Lukas
    Last edited by LukasRotter : 31st October 2018 at 11:17

  3. #3
    Join Date
    25.05.2016
    Posts
    6

    Daumen hoch Re: Variable Maximum over 1 day with time stamp of when the maximum was recorded

    Quote Originally Posted by LukasRotter View Post
    Hello James,



    If I understand your request correctly, a MAX formula with the following settings:

    Time Interval: 1 Day

    Result Output: At the end of the interval

    Initializing at the beginning of the interval: with new value



    and a reaction matrix on the max variable that treats any value as a limit violation and has "In Alarm Message List" configured should suffice.



    After each day there will be an alarm with the maximum value and the 'received' timestamp of the actual time the maximum was reached, and not when the interval ended, which is what you want as far as I understand. I don't know why you would need to map it to another variable. If you really do, it might be tricky to also map the timestamp as the received time, so please clarify if that is really the desired behavior.



    Best Regards

    Lukas

    Working well now thanks.

Similar Threads

  1. Replies: 0
    Last Post: 7th September 2018, 10:02
  2. Find Maximum or Minimum Value
    By arshad30ali in forum straton / zenon Logic
    Replies: 1
    Last Post: 17th January 2018, 10:02
  3. Maximum numerical value for REAL
    By EdgarsFeldmanis in forum zenon Supervisor
    Replies: 2
    Last Post: 6th July 2017, 10:32
  4. Numerical Value Box Maximum
    By cdaly2001 in forum zenon Supervisor
    Replies: 2
    Last Post: 11th March 2016, 14:57
  5. Invalid time stamp
    By jaroslav_kral in forum zenon Supervisor
    Replies: 2
    Last Post: 27th February 2012, 12:49

Tags for this Thread

Posting Rules

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