This case uses a float valve(DI0) to close the water valve.Float valve controls the water.
2. I/O list
|DI 0||X0||Float valve|
|DO 0||Y0||Water valve|
In this example, the water valve works according to the float valve.When the water tank is full of water,the float valve will close.Then the water valve will stop water inflow.