Arrays in PLC programming

jcp

Member
Join Date
Feb 2010
Location
Multan
Posts
369
HI sir;
I want to do the following task
i read the air inlet temprature from field and i want to get average of it after every two second and between 0 to 2 second the values store in a array when timer done bit is on it calculates the average.
Second opinion is that when 10 values are read out in an array it calculates the average.
I need help on this how i fullfill this task or any other opinion do u have?
Regards
 
Here's a quick idea maybe you could try something like this.
The Reading will not be correct for first 6 seconds. But you could add code to accomplish that too.
 

Similar Topics

I have a FactoryTalk SE project where I would like to read a CompactLogix string array (up to 2000) and then transfer this data to an Excel...
Replies
1
Views
1,871
Is there such a thing as an array in a plc similar to an array in visual basic (A(x))? Thank you
Replies
3
Views
1,400
Two questions for GE/Emerson e.g. PACSystemsRX3i (CPE330): 1. Is it possible to use 2D arrays inside a function as a local member? (I can only...
Replies
0
Views
60
Hi. This is pretty basic but I'm struggling to find an efficient solution. I have a float value of let say 666.555 that I want to move / split...
Replies
3
Views
224
Hello. I've been using the answers in this forum for a while now, so thank you. Usually I can find the answer I'm looking for with a basic...
Replies
8
Views
767
Back
Top Bottom