RS Logix 500 adding and averaging integer values

banditsrun

Member
Join Date
Mar 2008
Location
Queensland
Posts
2
Hi there,
I have an expression N24:[N24:0], which places a value in data file N24, these values are indexed with reference to N24:0 according to the word and stored. How then would I create an average of these values.

If you can help, thanks in advance.

Dan
 
This post has two examples, The circular queue example has the advantage that you don't have to loop and you don't re-sum the entire range of values but keep a running sum and don't move large amounts of memory around - saves processor time.

Do a forum search on AVERAGE, you'll find tons of threads on the topic and lots of examples.
 

Similar Topics

Dear Friends I want to understand the correct way for adding a rung in between a ladder program in RS Logix 500 as when I insert a rung, the...
Replies
19
Views
7,636
How can I keep adding a value from one register to another and retain the added number so It keeps incrementing? Example. I want to add the...
Replies
13
Views
2,882
I recently did a program conversion from logix 500 to studio 5000 and when machine runs it depends on two ton instructions to keep the machine in...
Replies
17
Views
445
So basically i have 2 queries : 1. I have a program file of S7-300 PLC which i want to migrate in RSLogix500.In short i want to convert my simatic...
Replies
15
Views
269
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
108
Back
Top Bottom