PLC5 4 AIs, throw out the high and low signals?

Join Date
Jun 2008
Location
Martinez, CA
Posts
15
I have 4 Analog Inputs coming into a PLC5. I want to throw out the high and low signals for the 4, so that I can average the other 2. Anyone have a good way of doing it?

Thanks!
 
Move the data to contiguous registers. ( integers or floating point).
Then use the "STR" instruction to sort the data in ascending order. Then use the two middle registers for your average. See instruction help for the "STR" instruction BELOW.
 

Similar Topics

I am using the following formula and I am getting error, Invalid Expression - too many closing parenthesis. when i copy the formula to notepad or...
Replies
4
Views
152
Preface: Kinda long, so I made section titles Intro: I just want to see if anyone here has seen anything similar. A PLC5-40 series C enhanced...
Replies
3
Views
365
Hi, can anyone help me get a pdf file for this RSP files. They are from a PLC5. Thanks
Replies
5
Views
516
Hello all, I am seeing this behaviour where an integer file (N46:33), has an integer in binary (11110) which is 30 in decimal. I did a...
Replies
7
Views
516
Back
Top Bottom