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
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

How to Program a Star-Delta System using 1 Button in PLC?
Introduction to Functional Block Diagram in Studio 5000
Automatic Door Operation PLC Programming and Simulation
Software Redundancy in Siemens PLC – Hardware versus Software
PLC Program for Boolean Expression
Applications of PLC Programming in Bottle Filling Process
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

Most Asked Questions on SCADA with Answers
PLC Program for Paint Spraying
PLC based Metro Automation Project
Types of Noise in Electronics
PLC Ladder Logic for Tanks Filling as per Priority
Free Industrial Control System (ICS) Cyber Security Training Course
CX-Programmer Tutorial: 1 Button To Activate 4 Different Machines
Structured Text in PLC: Parking Information Systems

Keep Learning

SCADA Systems

SCADA Systems

Siemens PLC-to-PLC Communication Project

GET Command – Siemens PLC-to-PLC Communication Project

Types of Allen Bradley PLC

Types of Allen Bradley PLC

Automatic bending machine for exhaust pipe

PLC Logic for Automatic Bending Machine for Exhaust Pipe

What is NEST loading=

What is Nest Loading? – DCS and PLC Control Systems

PLC Program to Control Level of Two Tanks

PLC Level Control of Two Tanks

Search tank in Intouch Scada

Tank Filling and Emptying using Intouch Scada Script

PLC Instructions

Program Flow Control Instructions in PLC Programming

Learn More

Flow Meter Questions and Answers

Flow Meter Questions and Answers

Tank Level Detection Switches

Tank Level Detection Switches

State Variable Analysis and Design

Observer Systems

Specific-Conductance-Calibration-Procedure

Types of AC Motors and DC Motors

relay-safety-in-plc

How to Reduce Relay Noise in PLC Systems?

PIN Diode Working Principle

PIN Diode Working Principle

Functions of Pressure Detectors

Functions of Pressure Detectors

Wedge Flow Meter

Wedge Flow Meter 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?