RSLogix 500 - Calculating Average

laneslabaugh

Member
Join Date
Nov 2008
Location
Indiana
Posts
5
All -

I am writing a control panel program in RSLogix500 f/u/w a MicroLogix 1100 PLC controller.

I have 8 exhaust port temps stored in integer files and need to calculate the average.

The only catch is, I need to throw out any values in the event the measurement device (thermocouple) fails. i.e. our temp scanner sends a value of 1759 C in the event of a failed thermocouple.

Anyone have any tricks/ideas on an efficient way to do this?
I know I could use the brute force method of testing each value then summing the good values and counting the number of good values and then dividing, but I'm trying to write efficient code. Seems like there's got to be a better way....
 
A little more info for the math gurus,would help.
Is this a running average? ( how long). 15 min, 1 hour, 1 month,average? etc.
How often do you want to take a sample?

Test the value before you add it to the sum. ( Less then or equal to its OK)
 
Analog averaging

I have an application that is asking to average an analog signal based on the following:

72 hour averaging.
8 hour averaging.
Instantaneous average.

I will be using RS Logix programming software with a micrologix 1400 controller. Can I use FIFO instructions? I know I am limited with this to 128 words. This is a very slow control process so the sampling can be limited to taking a sample every 5 minutes.
 

Similar Topics

Hello, Haven't been on in a while. I need to generate a bit level pdf of the I/O for RSLogix 500. I can generate a report but it just shows the...
Replies
1
Views
117
I would like to copy register N61:131 thru N61:147 into ST252:0 I keep failing What happens is I copy into ST252:0,1, 2 etc. What am i missing...
Replies
18
Views
493
I'm trying to fix a mess of code on an older machine that's running a Micrologix 1400 and an RS232 ASCII barcode scanner. The previous guy had...
Replies
3
Views
310
I'm not super familiar with the Micrologix line of processors, but I am pretty familiar with RSLogix 500. I'm trying to simply copy a string to...
Replies
4
Views
265
I have been using RSLogix 500 version 9 for a long time now. I am about to need to move to something else Rockwell related to cover the...
Replies
8
Views
911
Back
Top Bottom