Double Acting Pump

The suction and discharge happen in both motion directions of green piston.
When the piston goes down, valves A, D close, valves B, C open and vice versa.
The fluid pressure controls motions of the valves.