I found some air-driven pump performance curves
here, like the one below, so we could build a characteristic from that and model the system.
So, I edited your program @drbitboy and I made a huge change. The post you sent before helped a lot.
I got the area ratio of the pump I am using and its 16:1, so the air drive piston area is 16 times larger than the driven hydraulic plunger area.
Now using this equation, (Air drive pressure x Air drive piston Area = Outlet pressure x Driven hydraulic plunger Area) we can do some algebra to know how much pressure the transducer needs to receive the output pressure we need.
The air drive pressure is the Ip transducers pressure output so we can replace it in the equation.
Now we get this equation (IP transducer pressure= setpoint pressure/16) so now we can input this equation into the program and use it to pump to a certain output pressure.
Check rung 1 of subroutine 00 input map, I put that equation there and different percentage values to use later when trying to pump slow. We also don’t need a pump air cutoff valve because once the transducer reaches a certain pressure and stays there the pump stalls and the pressure stays the same.
In the subroutine 10 test logic I made huge changes to rung 4 because of the new way we can pump to pressure. This is not the best way to code this because the scans might be so quick that the transducer just shoots straight to the setpoint. I tried to code it to go to 20% then 40% until the transducer is at setpoint and output pressure is correct.
If anyone has more ideas on how to code rung 4 in the test logic, please let me know, because this code now will probably be too quick.
I will post the pdf now and when I get home later, I can post the actual click file. Thank you so much @drbitboy for making me save time. If I did not realize this, I would probably have a lot of pain later when trying to implement the old code on the actual system.
I definitely need more help in finding a way to pump to pressure, because the way I did it surely won't work, and it will cause damage on the transducer because its jumping from one pressure to another. We need to smoothly gain pressure and slow down once it's close to the inlet pressure we want. I am definitely not done with this but at least I have an idea of how it's going to work.
Also my pressure transducer says its output is 3-120 psig for a 4-20mA input
https://online.flippingbook.com/view/624021369/