This is what I observed while trying to create minute Total / Average of per second input.
First I set the Communication / Period to 00:00:01, to get OPC read per second (Matrikon simulator).
Next I use DateTime.Now.Second to get second number as time progress.
Next I add up all input values within the 0-59 seconds, skipping logic loops belonging to the same second. Same for the number of input count logic because I saw on my laptop it looped 8-9 times per second.
Test: set the “minute real” to Val(input channel), and watch as the input and second values change.
My issue: the minute real result seems to be set to the next “0”th second input value, instead of the last “59”th second value I expected.
This seems to throw off the Chart plotting on my “per second” input as well, and created difference between the default Chart and my own result.
Proposed solution: access to the internal “Writing minute data” total and count value may solve this for me.
I already read old forum posts dating back to 2015 on this subject, but saw no answer.