Help How to put average in TrendX

roc364

Member
Join Date
Sep 2004
Posts
13
Hello people, i am trying to display the average of the readings i have in the historical and trending display ( i am using rsTrendX )but cannot find a way to do it. (for example, i got 6 hours of trending the level of a tank, and need the average of the readings.)
If possible i dont want to use SPC.
Thanks for any help.
 
roc364,

What I have done before is to set up 12 PLC memory locations. Then I save a reading every 5 minutes for a 1-hour "rolling" average. At the end of 1-hour, I drop the oldest reading and add the newest one. I sum all twelve and divide by twelve. Before the first hour has passed, I only divide by the number of readings taken so far. In your case you could create a 6-hour rolling average by using 72 memory storage locations. This method works for data that is not changing very much. If your data is changing rapidly, you will need to shorten the averaging cycle time, say from 5 minutes to 1 minute. However, the more data, the slower your PLC will be--the scan time will increse proportionaly.

As for RS-Trendx, if a program doesn't have a specific funciton built into it when it was written, then there is not much you as a user can do, except talk to Rockwell and ask them to add that function in the next software revision.
 
Last edited:
thanks lancie!
Yes, i was thinking in doing something like that with the events of rsview32, and a VB code. What you say about the resources is true, but if i have no chance, will have to do it anyway.
thanks.
 

Similar Topics

Hi all, I am having a problem with a powerflex 753 we have on site and keep getting input phase loss. The drive has been running for a long...
Replies
7
Views
1,347
Hi, I work in a brewery in North Carolina and I need some help finding the output current for a VFD in the PLC. First off I am new to working with...
Replies
5
Views
1,320
I have a Mitsubishi FX2N-64MR-UA1 processor. The 1st analog output card is an FX2N-4DA. It requires 24VDC power. That card is obsolete. The card...
Replies
1
Views
1,573
Hi all! I have one question, it might be simple for one of you but I spent hours searching and reading through different platform until I found...
Replies
11
Views
1,617
Hello all, Thanks for the forum which has provided me with a lot of help overtime. I'm posting my first thread since I can't seem to find an...
Replies
4
Views
2,032
Back
Top Bottom