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

Hi Everyone, I am not proficient in RSLogix 500 so I have a question regarding the evaluation of N7:0 data as an input. So as I understand in...
Replies
1
Views
87
I have a little bit of experience with Allen-Bradley. I have a Micrologix 1500 (RSLogix 500) and a PanelView Plus 7 (FactoryTalk View Studio ME)...
Replies
3
Views
178
buen dia. tengo una falla al pasar los tags de mi plc SLC 5 0/4 a mi panel me aparece un error Problem writing value " " to item <tag name>...
Replies
1
Views
85
Will someone please convert this logic to pdf?
Replies
2
Views
127
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
163
Back
Top Bottom