Water Fountain Control Logic – PLC Exercises and Solutions

Learn the water fountain control logic using the PLC timers programming to control the high and low spray modes.

Please note that this PLC programming example is provided for educational purposes and allows learners to go through the practical usage of ladder logics.

Water Fountain Control Logic

Problem Statement:

Design a PLC ladder logic for the following application.

We are using one toggle switch to control High-Spray and Low-Spray.

The water fountain should operate in three stages or modes, as mentioned below.

  • High Spray for 15 seconds.
  • Low Spray for 10 seconds.
  • OFF for 5 seconds.

PLC Exercises and Solutions

These PLC exercises and solutions offer you the opportunity to learn the programming with in-depth concepts.

This PLC video helps you to understand the water fountain program.

Inputs and Outputs

Digital Inputs:

Start Button: I0.0

Digital Outputs:

High Spray: Q0.0

Low Spray: Q0.1

Ladder Diagram

Water Fountain Control Logic

Program Description

We have used Normally Open Contact for the Start Button (I0.0).

We have used Normally Closed Contact for Memory Bit (M0).

In Rung 0:

  1. Normally Open Contact is used for the Start Button (I0.0) to Turn ON the outputs High Spray (Q0.0) and Low Spray (Q0.1).
  2. Normally Closed Contact is used for Memory Bit (M0) to Turn OFF the outputs High Spray  (Q0.0) and Low Spray (Q0.1).
  3. Timer-type TP is used to Turn ON the output High Spray (Q0.0) for a limited time.
  4. Timer-type TON is used to delay the turning ON time of the output Low Spray (Q0.1) for some time.
  5. Timer-type TP is used to Turn ON the output Low Spray (Q0.1) for a limited time.

In Rung 1:

  1. Normally Open Contact is used for the Start Button (I0.0) to Turn ON Memory Bit (M0). 
  2. Timer-type TON is used to delay the turning ON time of Memory Bit (M0) for some time.
  3. Timer-type TP is used to Turn ON the Memory Bit (M0) for a limited time.

PLC Result

Now we will simulate the PLC logic and discuss the results.

Rung 0:

PLC used for water fountain pump control

When the Start Button (I0.0) is turned ON, the output High Spray (Q0.0) will turn ON for 15 seconds as Timer Function Block type TP is used to Turn ON the output High Spray (Q0.0) for a limited time. The time is set to 15 seconds.

water fountain example ladder logic

After 15 seconds, the output High Spray (Q0.0) will turn OFF. Also, when the Start Button (I0.0) is turned ON, the output Low Spray (Q0.1) will turn ON after 15 seconds, (i.e immediately when the output High Spray (Q0.0) turns OFF) as Timer Function Block TON is used to delay the turning ON time of the output Low Spray (Q0.1). The time is set to 15 seconds.

PLC Programming for Fountain

After 15 seconds, the Low Spray  (Q0.1) will turn ON but only for 10 seconds as Timer Function Block type TP is used to Turn ON the output Low Spray (Q0.1) for limited time. The time is set to 10 seconds. After 10 seconds, the output Low Spray (Q0.1) will turn OFF.

Rung 1:

When the Start Button (I0.0) is turned ON, the Memory Bit (M0) will turn ON after 25 seconds  (i.e immediately when the output Low Spray (Q0.1) turns OFF) as Timer Function Block TON is used to delay the turning ON time of Memory Bit (M0). The time is set to 25 seconds.

PLC Exercises and Solutions with Example

After 25 seconds, Memory Bit (M0) will turn ON but only for 5 seconds as Timer Function Block type TP is used to Turn ON Memory Bit (M0) for a limited time. The time is set to 5 seconds. After 5 seconds,  Memory Bit (M0) will turn OFF.

When Memory Bit (M0) turns ON in Rung1, Normally Closed Contact used for Memory Bit (M0) in Rung0 i.e used to turn OFF both outputs High Spray (Q0.0) and Low Spray (Q0.1) will be in True state and does not allow signal to pass to the outputs High Spray (Q0.0) and Low Spray (Q0.1) and the outputs High Spray (Q0.0) and Low Spray (Q0.1) will turn OFF.

Programmable Logic Controller Water Fountain

When the timer reaches its set time in Timer Function Block type TP in Rung1, Memory Bit (M0) turns OFF. When Memory Bit (M0) turns OFF in Rung1, Normally Closed Contact used for Memory Bit (M0) in Rung0  will be in a false state and will allow the signal to pass to the outputs  High Spray (Q0.0) and Low Spray (Q0.1) and the outputs High Spray (Q0.0) and Low Spray (Q0.1) will turn ON again.

If you liked this article, please subscribe to our YouTube Channel for PLC and SCADA video tutorials.

You can also follow us on Facebook and Twitter to receive daily updates.

Don't Miss Our Updates
Be the first to get exclusive content straight to your email.
We promise not to spam you. You can unsubscribe at any time.
Invalid email address

Leave a Comment