Filtering Analog Signal

@ Bit Bucket 07, you are right the text file used the formula
FV = FV + C(NV - FV), sorry about that it was a typo error on my end.

@ Peter, thanks
 
I've used the MAVE function block in the past to help hide the jitter. Pretty simple to set up, and you can determine the size of the averaging array to suit your needs.
 
You can also use the formula:

FV = FV(C)+UV(1-C)
FV = Filtered Value
C = Constant (0.00 - 0.99)
UV = Unfiltered Value

In the previous formula where we used FV = FV+C(UV-FV) the higher the C value that you used the more it fluctuates, but now with the other formula that i stated above, if you enter a high C value the less it fluctuates. I guess its a matter of personal preference, but i put it out there in case anyone want it that way.
 
It is probably so far back in the rear-view mirrors that most have forgotten, but if you have a PLC that only has Integers, you can't use the fractional constant without some manipulation of the formula.
 
@ Lancie1 you bring up a very good point, i didn't think of that, in the instance where your PLC just has INT's no floating points, how would you manipulate the formula to get your constants as fractional constants between 0.0 & 0.99???
 
In the old days you would have an implied decimal. (0 to 99) or (0-9)

Move the decimal back when your done. A little rounding off occurs and you have to watch out for values greater then 32767.
 

Similar Topics

i have a laser sensor from AB that is measuring block height, it works great but problem i am having is the signal is just all over the place up...
Replies
11
Views
5,474
Hey, I've read some threats here about analog signal filtering. Most propose a first order filter. I've done some experiments with first order...
Replies
4
Views
6,034
Hi All, I would like to ask you if possible to have some samples code for the realization of a software filter to be used in a PLC Micrologix...
Replies
2
Views
2,091
Hi All, Please see my below logic and AI configuration for a new Sick Laser DT500 that I am using for position feedback. The compute instruction...
Replies
3
Views
2,064
Hi all, I'm trying to access the analog filtering wizard with my 216 CPU and EM235 but I can't seem to find it. Does anyone know if this is...
Replies
2
Views
2,368
Back
Top Bottom