This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm that you accept these cookies being set.

Problem with trend data
#1
Good morning,

I have a Logic Machine on a plant where we monitor heat and electric meters. 
I have found a problem in the trend log data.

For a heat pump there are a heat meter and an electric meter that monitor the heat and electric power. The meters are integrated with Modbus RTU protcol.
Then we have a resident script that calculates a coefficient which is the heat power / electric power.

We have 3 trend log that have the following configuration:
 - Absolute value
 - Average
 - Every 5 minutes

The problem is that we have some data that are not right (there is an image of data in the upload).

For example, in the image, the first column is the result but at 3:15 there is a value that is completely wrong.
For the others rows the result seems to be correct.

Have you ever had some problems on the trendlog that compute the average?

Thank you in advance

Attached Files Thumbnail(s)
   
Reply
#2
Why do you say it is wrong?
------------------------------
Ctrl+F5
Reply
#3
(11.10.2023, 12:13)Daniel Wrote: Why do you say it is wrong?

Thank you for the reply.

Because the first column is calculated as: Column 2 / Column 3.

For the other values it is correct but for that one is wrong.
Reply
#4
Trends values are sampled once a minute, all values changes in between are not taken into account. Show your script for coefficient calculation. What is the script sleep time?
Reply
#5
(11.10.2023, 13:01)admin Wrote: Trends values are sampled once a minute, all values changes in between are not taken into account. Show your script for coefficient calculation. What is the script sleep time?

So the trendlog sample every minute and then perform the average of the 5 values?

I upload the script there. It has a sleep time of 1 second as the pool time od the Modbus devices.

Thank you

Attached Files
.txt   script.txt (Size: 652 bytes / Downloads: 14)
Reply
#6
This scripts creates a lot of unnecessary traffic, use grp.checkwrite or even better grp.checkupdate if no need to write to bus.
Yes sample value is taken every minute and then average is calculated for resolution period.
------------------------------
Ctrl+F5
Reply
#7
(11.10.2023, 14:12)Daniel Wrote: This scripts creates a lot of unnecessary traffic, use grp.checkwrite or even better grp.checkupdate if no need to write to bus.
Yes sample value is taken every minute and then average is calculated for resolution period.

Thank you so much for the advise.

At the moment we don't have a KNX bus connected to the Logic Machine and the Object are virtual so I don't think that they will be written on the bus.
I will try anyway to change the functions in order to avoid traffic, as you suggested!

I didn't know these two function that are really useful for some applications.
Reply


Forum Jump: