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?
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.