SlC500 analog input

markwisby

Member
Join Date
Jan 2011
Location
Michigan
Posts
2
Haven't done much with Analog inputs before.
Need to read pressure input 10x a second and save last 10 seconds worth and then calculate avg for the last 10 seconds.

Any thoughts about how to go about this?
Thanks in advance for the feedback.o_O
 
So you need to store and average 100 samples.

Is this going to be a running average or a one-time type of deal?

The problems you run into are overflow limits which can probably be remedied by using floating point addresses on a scaled input. Floats can create rounding errors, but depending on the values you're totalizing, it may not be noticeable. This will create a problem, however, if you need this to be a continuous running average because you can accumulate error over time.

I think there are quite a few threads and solutions on this subject if you search the forum.

Paul
 
Okie, Ty for the reply.
Yes overflow will come up, just didn't want to complicate things more than necessary at this point. because value could be 32767 and then it needs to be multiplied by a gain factor, but that will come later.

Just searched the forum and didn't find much. will try other sources I guess.

By the way, Born in Tulsa, go Sooners.
 

Similar Topics

I cannot add SLC500 analog input tag (I: 8.3) to EZSeries Touch Panel Editor (V 5.3). I used all the listed tag datatype but it all says "Invalid...
Replies
10
Views
257
Today while tracking down a 4-20 mA loop problem for old project since 2005. mA for loop is OK but channel give me -1 on scada i found rung...
Replies
5
Views
2,789
I have a SLC500 5/05 and we have an alarm setup to monitor the status of the Analog Inputs we have wired to a 1746-NI8. We are using 5 of the...
Replies
14
Views
2,811
Hi, Sorry for my bad english, I'm from Poland. I've decided to learn basic PLC programming as hobby and to maybe get a better job. I have...
Replies
2
Views
1,336
Hello all, I'm having an issue displaying the value I'm getting from a PFC to display on my Red Lion G307..... and before anyone says it...I...
Replies
1
Views
2,128
Back
Top Bottom