First off, I'm very rusty at the moment when it comes to programming, last time I did any programming was 15 years ago, and now this project has been dropped in my lap. The Controller is a 1769-L30ER with a 1769-IF40F2 analog card.
In this project there is a plunger pump that pressurizes a vessal 0-1000 PSI and a pressure transducer that measures the pressure inside this vessal, the problem is the transducer is picking up on the spikes the pump produces, so the "live reading" inside the program is bouncing up and down but steadily rising until the pump turns off. In the program the analog input is used to feed a "Greater than or Equal to" that once it reaches the set-point it starts a timer, since the reading is bouncing up and down, it will start the timer then drop the timer and then restart, and repeat until the bouncing range is above the set-point at which time the pump shuts off. After talking with a tech from Rockwell Automation, he suggested a MAVE to provide a "Running Average", basically it would take a so many samples, then average them, as the PSI is rising. I'm having a tough time trying to figure out the code to produce this. If anyone has some experience with this, I would truly appreciate it.
Thanks
In this project there is a plunger pump that pressurizes a vessal 0-1000 PSI and a pressure transducer that measures the pressure inside this vessal, the problem is the transducer is picking up on the spikes the pump produces, so the "live reading" inside the program is bouncing up and down but steadily rising until the pump turns off. In the program the analog input is used to feed a "Greater than or Equal to" that once it reaches the set-point it starts a timer, since the reading is bouncing up and down, it will start the timer then drop the timer and then restart, and repeat until the bouncing range is above the set-point at which time the pump shuts off. After talking with a tech from Rockwell Automation, he suggested a MAVE to provide a "Running Average", basically it would take a so many samples, then average them, as the PSI is rising. I'm having a tough time trying to figure out the code to produce this. If anyone has some experience with this, I would truly appreciate it.
Thanks