Display w/Dynamic Yearly Calc Values

I am trying to figure out the best way to create a display that would calculate and display the number of operations of an element per year. I have the operation counter coming in as a datapoint, so the math is easy, but not sure about having it create a new yearly field every year.

Ex:

2020 - 200

2021 - 210

2022 - 178

2023 - ???

.....

....

....

Thanks

Andy 

Parents
  • Hi Andy,

    You could store the values in a 2 dimensional persisted memory device array, and display it as per bradley's example.  You would need to implement a report which ran as often as required to presumably update the current year's record (by searching through the array and finding the appropriate year), and then when the year ticked over, adding the new year record to the end.  You would need to make sure that the data was secure whenever you did a software or hardware upgrade.  Since the number appears to reset at year end, your code should probably detect this rollover rather than assuming that the date in the PLC is perfectly synchronised with the SCADA.

Reply
  • Hi Andy,

    You could store the values in a 2 dimensional persisted memory device array, and display it as per bradley's example.  You would need to implement a report which ran as often as required to presumably update the current year's record (by searching through the array and finding the appropriate year), and then when the year ticked over, adding the new year record to the end.  You would need to make sure that the data was secure whenever you did a software or hardware upgrade.  Since the number appears to reset at year end, your code should probably detect this rollover rather than assuming that the date in the PLC is perfectly synchronised with the SCADA.

Children
No Data