Inst ToolsInst ToolsInst Tools
  • Ask
  • 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
  • Ask
  • 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 !
How to Work with Delta PLC Simulator?
#4 PLC Best Practices – Use PLC Flags as Integrity Checks
PLC Logic for Automatic Bending Machine for Exhaust Pipe
How to Install GSD File in Step 7 PLC using Simatic Manager?
Auto Sugar Bag Filling Station
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

Recent Comments

  • Guifty Shimica on Top Non-PLC Certification Courses for Automation Professionals
  • Guifty Shimica on Top Non-PLC Certification Courses for Automation Professionals
  • MIHARITSOA Aina Sitraka on Top Non-PLC Certification Courses for Automation Professionals
  • Vaishnavi on Free Instrumentation Course for Trainee Engineers

Related Articles

Sinking and Sourcing Devices Operation

PLC Sinking and Sourcing Explanation

How to Create DFB in Schneider PLC? – Derived Function Block

Types of Scan Time in a PLC

#16 PLC Best Practices – Create Trend for Cycle Time on HMI

Studio 5000 Define Program or Operator Control in Functional Block Diagram

Studio 5000: Define Program or Operator Control in Functional Block Diagram

Parameters of SRT_DINT instruction

Tia Portal – OB20 Time Delay Interrupt Organization Block

Analog Measurement using Ladder Logic

Analog Measurement using Ladder Logic

Wood Sawing and Blower System PLC Control Design

Wood Sawing and Blower System: PLC Control Design

car parking example logic

Up Down Counter Instruction in PLC

More Articles

PLC Programming in Hindi - Siemens Tia Portal Full Course

PLC Programming in Hindi – Siemens Tia Portal Full Course Free

Unbonded Strain Gauge Principle

Unbonded Strain Gauge Principle

Configuration of Siemens VFD Using TIA Portal

Configuration of Siemens VFD Using TIA Portal Start drive

Moisture Calculator

Moisture Calculator

Electrical Circuit Breaker Quiz

100 Electrical Circuit Breaker Quiz

Digital Electronics Multiple Choice Questions

Erasable Programmable Read Only Memory Objective Questions

Electrical Machines Questions and Answers

DC Generators Characteristics Quiz

Installation Precautions of Thermocouple and RTD

Installation Precautions of Thermocouple and RTD

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?