StopSignSteve
Member
Hey all,
Looking for some quick opinions on some sensor data collection with a S7-300
In the application we are testing a part for conformity. We will be reading 25 (4-20mA) values and recording the values every 100ms for 5 seconds for a total of around 50 values per sensor, and 1250 values per test.
We do this test 3 times per part, and each sensor and test needs to pass for the part to pass QC.
Currently we just do a rolling average of the data for each sensor, but our process and quality guys want to sort the values, then filter out a few of the top and bottom values per sensor, then average the rest. That way we can still pull any values that are way out of bounds.
Essentially the integrator wants to put in a PC to do that kind of work, but at a pretty big cost. I've floated some pseudo code around that should do the job using a comb sort when the test is done, but I don't have a rig to test it on right now.
https://en.wikipedia.org/wiki/Comb_sort
Has anyone done large amounts of data sorting like this before? Will it make my PLC cry, should I go with the integrator and spend a bunch of cash? Code is attached, hopefully it won't make anyone cry!
Thanks
Looking for some quick opinions on some sensor data collection with a S7-300
In the application we are testing a part for conformity. We will be reading 25 (4-20mA) values and recording the values every 100ms for 5 seconds for a total of around 50 values per sensor, and 1250 values per test.
We do this test 3 times per part, and each sensor and test needs to pass for the part to pass QC.
Currently we just do a rolling average of the data for each sensor, but our process and quality guys want to sort the values, then filter out a few of the top and bottom values per sensor, then average the rest. That way we can still pull any values that are way out of bounds.
Essentially the integrator wants to put in a PC to do that kind of work, but at a pretty big cost. I've floated some pseudo code around that should do the job using a comb sort when the test is done, but I don't have a rig to test it on right now.
https://en.wikipedia.org/wiki/Comb_sort
Has anyone done large amounts of data sorting like this before? Will it make my PLC cry, should I go with the integrator and spend a bunch of cash? Code is attached, hopefully it won't make anyone cry!
Thanks