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 Program for Fish Feeding 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 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.

PLC Code Examples - Fish Feeding System

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

Positive and Negative Edges using Statement List Language
Allen Bradley Powerflex VFD
Vendor Document for Project Systems Architecture
PLC Logic Functions
Traffic Lights Ladder Diagram using Timers
Ladder Logic for Stair-Case wiring using Toggle Switches
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

Toggle Switch & Sensor: Conveyor and Puncher PLC Program
FactoryTalk Studio and SQL Server for Data Logging
Which Connection is Best for PLC? – Sinking or Sourcing
Simulation of Studio 5000 and FactoryTalk View Studio
How to Use an SQL Server with Indusoft Web Studio?
Allen Bradley RSLogix 500 PLC Programming
Difference between Motion Controller and PLC
Memory Structure of Siemens PLC

Keep Learning

Light ON OFF Control using PLC

Light ON OFF Control using PLC

PLC Program using Logic GATEs

PLC Logic GATE Program

Sticker machine with weighing PLC logic

Product Sticker Machine with Weighing PLC Program

Analog Inputs in Siemens TIA Portal

What are Analog Inputs? – Analog Signals Processing in PLC

Proper Earthing Practices Used for PLC Control Panel

Proper Earthing Practices Used for PLC Control Panel

Use of Comments in SCL Language

Use of Comments in SCL Language

GSD File installation in Simatic Manager

How to Install GSD File in Step 7 PLC using Simatic Manager?

PLC Program Example - Signal Lamp Task

PLC Program Examples

Learn More

FF Function block location

Foundation Fieldbus Logics

Steam Tracing

Steam Tracing

Digital Electronics Multiple Choice Questions

Number Systems Objective Questions

% of Reading vs. % of Full Scale Accuracy

% of Reading vs. % of Full Scale Accuracy

List of Documents Required for Testing and Calibration Laboratory

List of Documents Required for Testing and Calibration Laboratories

Sensors & Transducers Questions and Answers

Top 100 Sensors & Transducers Questions and Answers for Freshers

Resistance firing of an SCR in a half-wave circuit

Thyristor Triggering Circuits – Types, Explanation, Waveforms (SCR)

Top 300 Digital Signal Processing Projects (DSP)

Top 300 Digital Signal Processing Projects – DSP Project Ideas

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?