MAVE SLOGS 5000 Setup Help

lukesnhoj

Member
Join Date
Sep 2012
Location
Perth
Posts
4
Hello

I'm having some problems setting up a MAVE block.
I have searched the forum but most of the threads have ended/died without a solid answer/solution.

The current setup is a 65000 Ltr tank, 4-20mA signal from a pressure transducer. I get a solid signal but the signal dithers around by about 500-800 Ltrs making the readout very hard for operators to read and make a recording for their paperwork.

I have attached a screen shot of my current program and how I have setup the block.

I have setup a Program Tag 'MAVE_DT1_LEVEL_SCALED' to store the values in but im not sure if I have done this correctly, it is setup as a REAL with a size of 100.

My input parameter is also a REAL so im not sure if this would also cause a problem? does it need to be a INT/DINT ?

mave.jpg
 
What I see from the help file the Storage Array must be REAL, and an Array

looks like this Tag is not MAVE_DT1_LEVEL_SCALED

should be = REAL[100] equal to size of samples.
 
Last edited:
Yes I does seem to work as a REAL 100 Array, but because the value is moving so quickly the sample rate is quiet high and still fluctuates quickly.

Should I be creating a sub routine with a longer update/sampling time?
 
I have a couple thoughts:

1) is the readout for operators setup for real/float values.

2) You could definitely create a sub routine with a longer update/sampling time

3) You could increase the number of samples
 
1) Yes the readout is for the operator to check tank levels before filling and they cross reference this with the tank dip stick/chart.

2) If I create a new periodic task, can I simply just 'cut' the current routine from my main continuous task and paste it into my new periodic task?

Do I need to conduct a shift/move of the values from the periodic task to the main task where the routine once was?
 

Similar Topics

I am trying to use the moving average instruction. Getting a little caught up on the details. What is the "Storage Array" and what type of tag...
Replies
2
Views
2,649
I have been averaging a number of values using the MAVE function and have been having good luck with them. The question I have is the time it...
Replies
3
Views
2,248
I have a Mave instruction running but I do not see an Average all I see is 50 in and the same number going out, what am i doing wrong ?? INPUT =...
Replies
2
Views
1,813
Hi all, First post in this forum. I am having trouble with a moving average (MAVE) instruction on an RSLogix 5000 controller. I have very...
Replies
3
Views
6,455
Hi all, First post, I have an AB compact controller, L35E - 19. I am trying to smooth out a temperature input that has some inherant noise on...
Replies
4
Views
2,110
Back
Top Bottom