Inst ToolsInst ToolsInst Tools
  • Courses
  • Automation
    • PLC
    • Control System
    • Safety System
    • Communication
    • Fire & Gas System
  • Instrumentation
    • Design
    • Pressure
    • Temperature
    • Flow
    • Level
    • Vibration
    • Analyzer
    • Control Valve
    • Switch
    • Calibration
    • Erection & Commissioning
  • Interview
    • Instrumentation
    • Electrical
    • Electronics
    • Practical
  • Q&A
    • Instrumentation
    • Control System
    • Electrical
    • Electronics
    • Analog Electronics
    • Digital Electronics
    • Power Electronics
    • Microprocessor
  • Request
Search
  • Books
  • Software
  • Projects
  • Process
  • Tools
  • Basics
  • Formula
  • Power Plant
  • Root Cause Analysis
  • Electrical Basics
  • Animation
  • Standards
  • 4-20 mA Course
  • Siemens PLC Course
Reading: PLC Programming for Garden Sprinkler System
Share
Notification Show More
Font ResizerAa
Inst ToolsInst Tools
Font ResizerAa
  • Courses
  • Design
  • PLC
  • Interview
  • Control System
Search
  • Courses
  • Automation
    • PLC
    • Control System
    • Safety System
    • Communication
    • Fire & Gas System
  • Instrumentation
    • Design
    • Pressure
    • Temperature
    • Flow
    • Level
    • Vibration
    • Analyzer
    • Control Valve
    • Switch
    • Calibration
    • Erection & Commissioning
  • Interview
    • Instrumentation
    • Electrical
    • Electronics
    • Practical
  • Q&A
    • Instrumentation
    • Control System
    • Electrical
    • Electronics
    • Analog Electronics
    • Digital Electronics
    • Power Electronics
    • Microprocessor
  • Request
Follow US
All rights reserved. Reproduction in whole or in part without written permission is prohibited.
Inst Tools > Blog > PLC Tutorials > PLC Programming for Garden Sprinkler System

PLC Programming for Garden Sprinkler System

Learn the PLC programming for garden sprinkler system to operate in four zones and the watering will be done using timer automation.

Last updated: April 25, 2024 10:02 am
Editorial Staff
PLC Tutorials
No Comments
Share
11 Min Read
SHARE

Learn the PLC programming for garden sprinkler system to operate in four zones and the watering will be done using timer automation.

Contents
Garden sprinkler SystemPLC Training Series Step-by-StepInputs and OutputsPLC ProgrammingProgram DescriptionProgram Simulation

Note: These PLC example codes are mainly suited for the students and engineers to learn and practice the ladder logic.

Garden sprinkler System

Problem Statement:

Design a PLC ladder logic for the following application.

There is a garden water sprinkler system with 4 zones. Zone 1 should operate for 15 seconds, then Zone 2 should operate for 15 seconds, then Zone 3 should operate for 15 seconds, then Zone 4 should operate for 15 seconds.

The system will operate only if it is not raining and there is no one in that particular zone.

PLC Training Series Step-by-Step

The automation community provides the best PLC training series with a step-by-step approach. Try for free of cost.

This PLC program video explains the water sprinkler problem and its solution.

PLC Ladder Diagram Example Problems - Garden Sprinkler Control

Inputs and Outputs

Digital Inputs:

Start Button: I0.0

Digital Outputs:

Zone 1: Q0.0

Zone 2: Q0.1

Zone 3: Q0.2

Zone 4: Q0.3

PLC Programming

PLC Programming for Garden sprinkler System

Program Description

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

In Rung 0:

  1. Normally Open Contact is used for the Start Button (I0.0) to Turn ON the outputs Zone 1 (Q0.0) and Zone 2 (Q0.1). 
  2. Timer Function Block type TP is used to Turn ON the output Zone 1 (Q0.0) for a limited time.
  3. Timer Function Block type TON is used to delay the turning ON time of the output Zone 2 (Q0.1) for some time.
  4. Timer Function Block type TP is used to Turn ON the output Zone 2 (Q0.1) for a limited time.
  5. Normally Closed Contacts are used for Rain Sensors (I0.5) to turn OFF the outputs of Zone 1 (Q0.0) and Zone 2 (Q0.1).
  6. Normally Closed Contact is used for Sensor 1 (I0.1) to turn OFF the output Zone 1 (Q0.0).
  7. Normally Closed Contact is used for Sensor 2 (I0.2) to turn OFF the output Zone 2 (Q0.1).

In Rung 1:

  1. Normally Open Contact is used for the Start Button (I0.0) to Turn ON the outputs Zone 3 (Q0.2) and Zone 4 (Q0.3). 
  2. Timer Function Block type TON is used to delay the turning ON time of the output Zone 3 (Q0.2) for some time.
  3. Timer Function Block type TP is used to Turn ON the output Zone 3 (Q0.2) for a limited time.
  4. Timer Function Block type TON is used to delay the turning ON time of the output Zone 4 (Q0.3) for some time.
  5. Timer Function Block type TP is used to Turn ON the output Zone 4 (Q0.3) for a limited time.
  6. Normally Closed Contacts are used for Rain Sensors (I0.5) to turn OFF the outputs of Zone 3 (Q0.2) and Zone 4 (Q0.3).
  7. Normally Closed Contact is used for Sensor 3 (I0.3) to turn OFF the output Zone 3 (Q0.2).
  8. Normally Closed Contact is used for Sensor 4 (I0.4) to turn OFF the output Zone 4 (Q0.3).

Program Simulation

We will simulate the PLC program and discuss the results. We may show the partial logic instead of the complete program in the below test cases. Watch the above video to learn this programming.

Rung 0:

When the Start Button (I0.0) is turned ON, the output Zone 1 (Q0.0) turns ON (Garden sprinkler system starts in Zone 1) but for a limited time as Timer Function type TP is used to turn ON the Output Zone 1 (Q0.0) or Start the Garden Sprinkle system in Zone 1 for a limited time. The time is set to 15 seconds.

Automated garden sprinkler logic

So after 15 seconds, the output Zone 1 (Q0.0) will turn OFF, or after 15 seconds Garden sprinkler system in Zone 1 stops.

Also, when Start Button (I0.0) is turned ON, the output Zone 2 (Q0.1) will turn ON after 15 seconds, or the Garden sprinkler system will start in Zone 2 after 15 seconds i.e immediately after the output Zone 1 (Q0.0) is turned OFF or (after Garden sprinkler system in Zone 1 stops) because Timer Function Block TON is used to delay the turning ON time of the output Zone 2 (Q0.1). The time is set to 15 seconds.

PLC control for zone-based watering

After 15 seconds, the output Zone 2 (Q0.1) will turn ON, or after 15 seconds Garden sprinkler system starts in Zone 2 but for a limited time as Timer Function Block type TP is used to turn ON the output Zone 2 (Q0.1) for a limited time. The time is set to 15 seconds.

Sprinkler system automation

After 15 seconds, the output Zone 2 (Q0.1) turns OFF, or after 15 seconds the Garden sprinkler system in Zone 1 stops.

If Rain sensor (I0.5) gets activated in Rung0 (Rain starts), the outputs in Rung0 Zone 1 (Q0.0) and Zone 2 (Q0.1) will remain OFF or will turn OFF (Garden sprinkler system in Zone 1 and Zone 2 will not start or will turn OFF if it was started).

Garden irrigation with PLC

If Sensor 1 gets activated in Rung0 (Sensor detects movement in Zone 1), the output Zone 1 (Q0.0) will remain OFF or will turn OFF (Garden sprinkler system in Zone 1 will not start or will turn OFF if it was started).

Rain sensor based PLC program for water

If Sensor 2 gets activated in Rung0 (Sensor detects movement in Zone 2), the output Zone 2 (Q0.1) will remain OFF or will turn OFF (Garden sprinkler system in Zone 2 will not start or will turn OFF if it was started).

Sprinkler timer control with PLC Programming

Rung 1:

When the Start Button (I0.0) is turned ON, the output Zone 3 (Q0.2) turns ON after 30 seconds, or after 30 seconds the Garden sprinkler system starts in Zone 3 i.e immediately after the output Zone 2 (Q0.1) is turned OFF or (after Garden sprinkler system in Zone 2 stops) because Timer Function Block TON is used to delay the turning ON time of the output Zone 3 (Q0.2). The time is set to 30 seconds.

Rain detection in garden sprinklers

After 30 seconds, the output Zone 3 (Q0.2) will turn ON, or after 30 seconds Garden sprinkler system in Zone 3 starts but for a limited time as Timer Function Block type TP is used to turn ON the output Zone 3 (Q0.2) for limited time. The time is set to 15 seconds.

PLC logic for garden watering

After 15 seconds, the output Zone 3 (Q0.2) turns OFF, or after 15 seconds Garden sprinkler system in Zone 3 stops.

Also, when Start Button (I0.0) is turned ON, the output Zone 4 (Q0.3) will turn ON after 45 seconds, or the Garden sprinkler system will start in Zone 4 after 45 seconds i.e immediately after the output Zone 3 (Q0.2) is turned OFF or (after Garden sprinkler system in Zone 3 stops) because Timer Function Block TON is used to delay the turning ON time of the output Zone 4 (Q0.3). The time is set to 45 seconds.

Garden sprinkler automation solution

After 45 seconds, the output Zone 4 (Q0.3) will turn ON, or after 45 seconds Garden sprinkler system starts in Zone 4 but for a limited time as Timer Function Block type TP is used to turn ON the output Zone 4 (Q0.3) for a limited time. The time is set to 15 seconds.

Smart garden watering using PLC program

After 15 seconds, the output Zone 4 (Q0.3) turns OFF, or after 15 seconds Garden sprinkler system in Zone 4 stops.

If Rain sensor (I0.5) gets activated in Rung1 (Rain starts), the outputs in Rung1 Zone 3 (Q0.2) and Zone 4 (Q0.3) will remain OFF or will turn OFF (Garden sprinkler system in Zone 3 and Zone 4 will not start or will turn OFF if it was started).

Garden sprinkler timer programming

If Sensor 3 gets activated in Rung1 (Sensor detects movement in Zone 3), the output Zone 3 (Q0.2) will remain OFF or will turn OFF (Garden sprinkler system in Zone 3 will not start or will turn OFF if it was started).

Ladder Logic for Water Sprinkler

If Sensor 4 gets activated in Rung1 (Sensor detects movement in Zone 4), the output Zone 4 (Q0.3) will remain OFF or will turn OFF (Garden sprinkler system in Zone 4 will not start or will turn OFF if it was started).

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.

Read Next:

  • FIFO Queue in STL Language in Siemens PLC
  • Searching the Tag number in Siemens PLC Program
  • PID Controllers in Closed Loop Control Systems
  • Instrumentation Engineer Detail Design Phase
  • How to Use Diagnostic Buffer for SIEMENS PLC?
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
You've successfully subscribed !

Continue Reading

All About Fieldbus Protocols
PLC Configuration of Profinet I/O System
Timers using Statement List (STL) PLC Programming
SCADA Systems
Industrial Automation Engineers Interview Questions
Allen Bradley PLC Interview Questions and Answers
Share This Article
Facebook Whatsapp Whatsapp LinkedIn Copy Link
Share
Leave a Comment

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Stay Connected

128.3kFollowersLike
69.1kFollowersFollow
210kSubscribersSubscribe
38kFollowersFollow

Categories

Explore More

1oo2 Evaluation Safety Instruction in Safety PLC
How to Add Security in InTouch SCADA?
Automatic Highway Lights Program using RTC in Omron PLC
What is a Line Choke or Reactor in a VFD?
Door Lock with Delay PLC Exercise Problems
PLC Program for Conditional Control Logic
PLC Pump Control: 10 seconds ON & 20 seconds OFF
Seven Segment Display Programming with Structured Text

Keep Learning

PLC Program using START & STOP Buttons

PLC Program using START and STOP Buttons

Node-RED in PLC Automation

Node-RED in PLC Industrial Automation

Basics of PID Controllers

PID Controllers in Closed Loop Control Systems – PLC Basics

PLC Program using Counters

PLC Counters Program

PLC Automatic Irrigation System Ladder Logic Project

PLC Automatic Irrigation System

Comparison of Control Loops - Open, Closed, Cascade, Feedforward, Ratio

Comparison of Control Loops – Open, Closed, Cascade, Feedforward, Ratio

OPC in PLC Systems

OPC in Old PLC Systems

DCS Alarm and Setpoint

Setpoints and Alarms in Control System

Learn More

Configure Analog Inputs and Outputs in Delta PLC

How to Configure Analog Inputs and Outputs in Delta PLC?

What is Electrical Busbar

What is Electrical Busbar? Types, Advantages, Disadvantages

Relay Parts

NO vs NC Contact

Solenoid Valve Failure in Plant Start-Up

Solenoid Valve Failure in Plant Start-Up: Identifying the Root Cause

Smart Transmitter Calibration Tutorial Part 2

Smart Transmitter Calibration Tutorial Part 2

Foundation Fieldbus Tutorials

Foundation Fieldbus Tutorials

PLC Program for Sequential Motor Control

PLC Program for Sequential Motor Control

Paddle switch Working Principle

Paddle Switch Working Principle

Menu

  • About
  • Privacy Policy
  • Copyright

Quick Links

  • Learn PLC
  • Helping Hand
  • Part Time Job

YouTube Subscribe

Follow US
All rights reserved. Reproduction in whole or in part without written permission is prohibited.
Welcome Back!

Sign in to your account

Username or Email Address
Password

Lost your password?