RS Logix 500 adding and averaging integer values

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...
19
Replies
9,730
Views
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...
13
Replies
3,536
Views
Hello all, I have a customer with the thread name setup on a machine, the PLC died and I am bench testing so when I ship everything to them I...
11
Replies
370
Views
Really pulling my hair out here, yet again. I have RSLogix 500 on a Windows 11 laptop. I am trying to get it running on a different Windows 11...
2
Replies
253
Views
Can someone give me an idea as to how much the software and lifetime license currently costs? (the Starter Edition is really all I need) Thanks.
2
Replies
576
Views
Top