Inst ToolsInst ToolsInst Tools
  • Courses
  • Videos
  • Q & A
    • Interview
      • Instrumentation
      • Electronics
      • Electrical
      • Practical Questions
    • MCQ
      • Instrumentation MCQ
      • Electrical MCQ
      • Electronics MCQ
      • Control Systems MCQ
      • Analog Electronics MCQ
      • Digital Electronics MCQ
      • Power Electronics MCQ
      • Microprocessor MCQ
      • Multiple Choice Questions
  • EE
    • Electronics
      • Electronics Q & A
      • Electronic Basics
      • Electronic Devices & Circuits
      • Electronics Animation
      • Digital Electronics
    • Electrical
      • Electrical Basics
      • Electrical Q & A
      • Power Electronics
      • Electrical Machines
      • Electrical Animation
      • Power Systems
      • Switchgear & Protection
      • Transmission & Distribution
  • Measure
    • Control Valves
    • Calibration
    • Temperature
    • Pressure
    • Flow
    • Level
    • Analyzers
    • Switches
    • Vibration
    • Solenoid Valve
  • Control
    • PLC Tutorials
    • Control Systems
    • Safety Instrumented System (SIS)
    • Communication
    • Fire & Gas System
  • More
    • Design
    • Tools
    • Animation
    • Basics
    • Formulas
    • Standards
    • TextBooks
    • Common
    • Software
    • Excel Tools
    • Erection & Commissioning
    • Process Fundamentals
    • Videos
    • Books
Search
All rights reserved. Reproduction in whole or in part without written permission is prohibited.
Reading: PLC Program for Fish Feeding System
Share
Notification Show More
Font ResizerAa
Inst ToolsInst Tools
Font ResizerAa
  • Courses
  • PLC Tutorials
  • Control Systems
Search
  • Courses
  • Videos
  • Q & A
    • Interview
    • MCQ
  • EE
    • Electronics
    • Electrical
  • Measure
    • Control Valves
    • Calibration
    • Temperature
    • Pressure
    • Flow
    • Level
    • Analyzers
    • Switches
    • Vibration
    • Solenoid Valve
  • Control
    • PLC Tutorials
    • Control Systems
    • Safety Instrumented System (SIS)
    • Communication
    • Fire & Gas System
  • More
    • Design
    • Tools
    • Animation
    • Basics
    • Formulas
    • Standards
    • TextBooks
    • Common
    • Software
    • Excel Tools
    • Erection & Commissioning
    • Process Fundamentals
    • Videos
    • Books
Follow US
All rights reserved. Reproduction in whole or in part without written permission is prohibited.
Inst Tools > Blog > PLC Tutorials > PLC Program for Fish Feeding System

PLC Program for Fish Feeding System

PLC program for fish feeding system to dispense the food if there is movement of fish in the nearby water for a defined time interval.

Last updated: April 24, 2024 2:20 pm
Editorial Staff
PLC Tutorials
No Comments
Share
9 Min Read
SHARE

PLC program for fish feeding system to dispense the food if there is movement of fish in the pond for a defined time interval.

Contents
Fish Feeding SystemAutomation AcademyInputs and OutputsLadder LogicPLC Program ExplainedSimulation Results

Note: This PLC exercise targets the engineers students and working professionals to learn the programming basics.

Fish Feeding System

Problem Statement:

Design a PLC ladder logic for the following application.

We are using one toggle switch and one sensor to control three valves.

The system should dispense three types of food for 5 seconds every 15 seconds. It will dispense food only if there is movement of fish in the nearby water.

Automation Academy

The automation community provides online free learning courses on PLC, SCADA, and HMI.

This PLC programming video explains the fish-feeding logic.

Inputs and Outputs

Digital Inputs:

Start Button: I0.0

Sensor: I0.1

Digital Outputs:

Valve 1: Q0.0

Valve 2: Q0.1

Valve 3: Q0.2

Ladder Logic

PLC Program for Fish Feeding System

PLC Program Explained

We have used Normally Open Contacts for the Start Button (I0.0), Sensor (I0.1), and Memory Bit 1 (M0).

In Rung 0:

  1. Normally Open Contacts are used for the Start Button (I0.0) and Sensor (I0.1) to Turn ON Memory Bit 1 (M0).
  2. Normally Closed Contact is used for Memory Bit 2 (M1) to turn OFF Memory Bit 1 (M0).

In Rung 1:

  1. Normally Open Contact is used for Memory Bit 1 (M0) to Turn ON the output Valve 1 (Q0.0).
  2. Timer type TP is used to Turn ON the output Valve 1 (Q0.0) for a limited time.

In Rung 2:

  1. Normally Open Contact is used for Memory Bit 1 (M0) to Turn ON the output Valve 2 (Q0.1).
  2. Normally Closed Contact is used for Valve 1 (Q0.0) to turn ON the output Valve 2 (Q0.1).
  3. Timer type TP is used to Turn ON the output Valve 2 (Q0.0) for a limited time.

In Rung 3:

  1. Normally Open Contact is used for Memory Bit 1 (M0) to Turn ON the output Valve 3 (Q0.2).
  2. Normally Closed Contacts are used for Valve 1 (Q0.0) and Valve 2 (Q0.1) to turn ON the output Valve 3 (Q0.2).
  3. Timer Function Block type TP is used to Turn ON the output Valve 3 (Q0.2) for a limited time.

In Rung 4:

  1. Normally Open Contact is used for Memory Bit 1 (M0) to Turn ON Memory Bit 2 (M1).
  2. Timer Function Block type TON is used to delay the turning ON time of Memory Bit 2 (M1) for some time.

Simulation Results

Let’s simulate the PLC program and analyze the results. Please note that we may show only the part of the logic instead of the complete program in the below test cases. We recommend you to watch the above given PLC video.

Rung 0:

When Start Button (I0.0) is turned ON and Sensor (I0.1) gets activated (Sensor detects Fishes), Memory Bit 1 (M0) turns ON as Normally Open Contact used for Start Button (I0.0) and sensor (I0.1) allows the signal to pass through it to turn ON Memory Bit 1 (M0).

PLC control for fish feeding

In a false state, Normally Closed Contact used for Memory Bit 2 (M1) also passes the signal to turn ON Memory Bit 1 (M0) and Memory Bit 1 (M0) turns ON.

Rung 1:

When Memory Bit 1 (M0) turns ON in Rung0, Normally Open Contact used for Memory Bit 1 (M0) in Rung1 will be in True state and allow the signal to pass through it to turn ON the output Valve 1 (Q0.0) (System starts dispensing first type of food).

Fish feeder automation

The output Valve 1 (Q0.0) will remain ON for a limited time as the Timer Function Block type TP is used to turn ON the output Valve 1 (Q0.0) for a limited time.

The time is set to 5 seconds. After 5 seconds, the output Valve 1 (Q0.0) will turn OFF (The system stops dispensing the first type of food).

Sensor-based fish feeding machine

Rung 2:

Also, When Memory Bit 1 (M0) turns ON in Rung0 and the output Valve 1 (Q0.0) turns OFF in Rung1 (Dispensing of First type of Food stops), the output Valve 2 (Q0.1) turns ON as Normally Open Contact used for Memory Bit 1 (M0) will be in True State and allows the signal to pass through it.

Automatic fish food dispenser

In a false state, Normally Closed Contact used for Valve 1 (Q0.0) also passes the signal to turn ON the output Valve 2 (Q0.1) (System starts dispensing the second type of food).

The output Valve 2 (Q0.1) will remain ON for a limited time as the Timer Function Block type TP is used to turn ON the output Valve 2 (Q0.1) for a limited time. The time is set to 5 seconds.

pet feeding automation

After 5 seconds, the output Valve 2 (Q0.1) will turn OFF (The system stops dispensing the second type of food).

Rung 3:

Also, When Memory Bit 1 (M0) turns ON in Rung0, the output Valve 1 (Q0.0) turns OFF in Rung1 (Dispensing of First type of Food stops) and the output Valve 2 (Q0.1) turns OFF in Rung2 (Dispensing of second type of Food stops), the output Valve 3 (Q0.2) turns ON as Normally Open Contact used for Memory Bit 1 (M0) will be in True State and allows the signal to pass through it.

Fish movement detection system

In a false state, Normally Closed Contact used for Valve 1 (Q0.0) and Valve 2 (Q0.0) also passes the signal to turn ON the output Valve 3 (Q0.2) (System starts dispensing third type of food).

Fish tank automation with PLC

The output Valve 3 (Q0.2) will remain ON for a limited time as the Timer Function Block type TP is used to turn ON the output Valve 3 (Q0.2) for a limited time.

The time is set to 5 seconds. After 5 seconds, the output Valve 3 (Q0.2) will turn OFF (The system stops dispensing the third type of food).

Rung 4:

Also, When Memory Bit 1 (M0) turns ON in Rung0, Memory Bit 2 (M1) turns ON in Rung4 after 30 seconds as Timer Function Block type TON is used to delay the turning ON time of Memory Bit 2 (M1), and the time is set to 30 seconds.

Fish feeder valve automation

So after 30 seconds, Memory Bit 2 (M1) will turn ON but it will turn OFF within no time because in Rung0, Normally Closed Contact is used for Memory Bit 2 (M1).

In Rung0, Normally Closed Contact used for Memory Bit 2 (M1) will also turn ON and OFF within no time and the whole process will restart.

fish feed ladder logic

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:

  • Siemens HMI Training Tutorials and Codes
  • PLC Programming with Sequencer Instruction
  • PID Controllers in Closed Loop Control Systems
  • Instrumentation Engineer Detail Design Phase
  • How to Take Program Backup from 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

Concept of Interlocking in PLC
Cybersecurity in PLC
PLC SCL Program for Marking Machine
PLC Programming for Tank Heating Control using Heater
Allen Bradley Bitwise Logical Operations
Push button Motor PLC Logic
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
208kSubscribersSubscribe
38kFollowersFollow

Categories

Explore More

Readings Mismatch between Field & Control Room ? Why
Basic Pumping System Application Used in Industrial Automation
Schneider Electric: Car Parking System with Calculations in PLC
DCS
User Defined Data Types (UDT) – Purpose, Need, Tutorial
GET Command – Siemens PLC-to-PLC Communication Project
Basic PLC Alarm Programming Example
How to Select the Right Encoder for Your Machine?

Keep Learning

Problem on PLC, HMI, VFD, and Motor Circuit

Problem on PLC, HMI, VFD, and Motor Circuit

PLC Ladder Logic for Demultiplexer

1 to 8 Demultiplexer PLC ladder diagram

Automation Engineer Troubleshooting Tips

Best Way to Build Troubleshooting Mindset for Automation Engineer

Siemens Communication between PLCs using I-Device

Tutorial: Siemens Communication between PLCs using I-Device

Software Troubleshooting Errors and Faults in Siemens PLC

Software Troubleshooting Errors and Faults in Siemens PLC

HMI book

HMI Handbook

OFF Delay Timer using PLC

OFF Delay Timer using PLC

Ladder Logic Vs. Other Programming Languages - PLC Basics

Ladder Logic Vs. Other Programming Languages – PLC Basics

Learn More

LCS Configuration equipped with LOTO Facility

Motor Control Signal Interface

Configure Analog Inputs and Outputs in Delta PLC

How to Configure Analog Inputs and Outputs in Delta PLC?

Power Electronics Objective Questions

Thyristor Rating Objective Questions and Answers

Retrieve from memory card

How to Retrieve PLC Project From Memory Card?

Erratic Stroking Control Valves

Erratic Stroking Control Valves Delaying the Shutdown Plant Restart

SCR Class B Resonant-Pulse Commutation

Thyristor Commutation Techniques – Types, Working Principles

Control Systems Stability and Algebraic Criteria

Necessary Conditions for Stability & Non-Linear Systems

Electrical Machines Questions and Answers

Transformer Losses and Efficiency

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?