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 Timer Practice Exercise: Coffee Machine Programming
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 Timer Practice Exercise: Coffee Machine Programming

PLC Timer Practice Exercise: Coffee Machine Programming

This program is an exercise for the students to learn the PLC timer applications examples on coffee machine programming.

Last updated: May 16, 2024 12:10 pm
Editorial Staff
PLC Tutorials
1 Comment
Share
7 Min Read
SHARE

This program is an exercise for the students to learn the PLC timer applications examples on coffee machine programming.

Contents
PLC Timer Practice ExerciseFree PLC Training VideoInputs and OutputsCoffee Machine ProgrammingProgram DescriptionLogic Simulation

Note: This example program is an exercise for the students to learn the usage of timers.

PLC Timer Practice Exercise

Problem Statement

Design a PLC ladder logic for the following application.

We are using one toggle switch to Dispense Coffee, Water, Milk, and Perform stirring.

The machine should dispense the appropriate amount of Coffee for 5 seconds, then Water for 10 seconds, followed by Milk for 8 seconds. The process should end with a stirring of 5 seconds.

Free PLC Training Video

Our free PLC training video is useful for the students and technicians to master the ladder logic.

Inputs and Outputs

Digital Inputs

Start Button: I0.0

Digital Outputs

Coffee: Q0.0

Water: Q0.1

Milk: Q0.2

Stirring: Q0.3

Coffee Machine Programming

PLC Timer Programming Examples on Coffee Machine

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 Coffee  (Q0.1) and Water (Q0.1).
  2. Timer Function Block type TP is used to Turn ON the output Coffee (Q0.0) for a limited time.
  3. Timer Function Block type TON is used to delay the turning ON time of the output Water (Q0.1) for some time.
  4. Timer Function Block type TP is used to Turn ON the output Water (Q0.1) for a limited time. 

In Rung 1:

  1. Normally Open Contact is used for the Start Button (I0.0) to Turn ON the outputs Milk (Q0.2) and stirring (Q0.3). 
  2. Timer Function Block type TON timer is used to delay the turning ON time of the output Milk (Q0.2) for some time.
  3. Timer Function Block type TP is used to Turn ON the output Milk (Q0.2) for a limited time.
  4. Timer Function Block type TON is used to delay the turning ON time of the output Stirring (Q0.3) for some time.
  5. Timer Function Block type TP is used to Turn ON the output Stirring (Q0.3) for a limited time.

Logic Simulation

Let’s simulate the PLC program. Here we show the required part of the logic instead of the complete logic. We suggest you watch the above video to learn about this example program.

Rung 0:

When the Start Button (I0.0) is turned ON, the output Coffee (Q0.0) turns ON ( Machine starts dispensing Coffee) but for a limited time as Timer Function type TP is used to turn ON the Output Coffee (Q0.0) or dispense the Coffee for a limited time.

Ladder Logic Simple Coffee Machine

The time is set to 5 seconds. So after 5 seconds, the output Coffee (Q0.0) will turn OFF, or after 5 seconds the dispensing of Coffee finishes.

PLC program for coffee maker machine

Also, when the Start Button (I0.0) is turned ON, the output Water (Q0.1) will turn ON after 5 seconds or the Machine will start dispensing water after 5 seconds (i.e immediately after the output Coffee(Q0.0) is turned OFF or after the dispensing of coffee is finished) because Timer Function Block TON is used to delay the turning ON time of the output Water (Q0.1).

Coffee Making Machine Using PLC

The time is set to 5 seconds. So after 5 seconds, the output Water (Q0.1) will turn ON, or after 5 seconds Machine starts dispensing water but for a limited time as Timer Function Block type TP is used to turn ON the output Water (Q0.1) for a limited time.

The time is set to 10 seconds. So after 10 seconds, the output Water (Q0.1) turns OFF, or after 10 seconds dispensing of Water finishes.

Rung 1:

Ladder Logic Example on Automatic Coffee Making Machine

When the Start Button (I0.0) is turned ON, the output Milk (Q0.2) turns ON after 15 seconds, or after 15 seconds Machine starts dispensing Milk  (i.e immediately after the output Water (Q0.1) is turned OFF or after the dispensing of Water is finished) because Timer Function Block TON is used to delay the turning ON time of the output Milk (Q0.2).

PLC Programming Coffee Machine

The time is set to 15 seconds. So after 15 seconds, the output Milk (Q0.2) will turn ON, or after 15 seconds Machine will start dispensing Milk but for a limited time as Timer Function Block type TP is used to turn ON the output Milk (Q0.2) for a limited time.

coffee machine plc project

The time is set to 8 seconds. So after 8 seconds, the output Milk (Q0.2) turns OFF, or after 8 seconds dispensing of Milk finishes.

Also, When the Start Button (I0.0) is turned ON, the output Stirring (Q0.3) will turn ON after 23 seconds or after 23 seconds Machine starts Stirring  (i.e immediately after the output Milk(Q0.2) is turned OFF or after the dispensing of Milk is finished) because Timer Function Block TON is used to delay the turning ON time of the output Stirring (Q0.3).

Automatic Coffee Maker system

The time is set to 23 seconds. So after 23 seconds, the output Stirring (Q0.3) will turn ON, or after 23 seconds Machine starts Stirring but for a limited time as Timer Function Block type TP is used to turn ON the output Stirring (Q0.3) for a limited time.

The time is set to 5 seconds. So after 5 seconds, the output Stirring (Q0.3) turns OFF, or after 5 seconds stirring finishes.

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:

  • PLC Program for Entry and Exit Car Parking
  • Batch Simulator Program using LogixPro
  • Types of Sensors Used in the Dairy Industry
  • Pump Run for 10 seconds & OFF for 20 seconds
  • Automatic Coffee Vending Machine PLC Logic 
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 !
PLC Program for Controlling Sequence of Conveyors with Interlock
Basics of Sinking and Sourcing – Automation System MCQ
How to Install GSD File in Step 7 PLC using Simatic Manager?
Monitor and Modify Variables in Simatic Manager
Open Platform Communication (OPC)
Share This Article
Facebook Whatsapp Whatsapp LinkedIn Copy Link
Share
1 Comment
  • Vijay says:
    September 17, 2024 at 4:18 am

    Hi,your post is very useful to me for learning the plc program. I’m the beginner stage pls upload the how to learn the plc hardware configuration and how do trouble shooting the problem in plc

    Reply

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

  • Kamli on Top Free PLC Software
  • 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

Related Articles

Architecture of Allen Bradley PLC

Architecture of Allen Bradley PLC

Cybersecurity in PLC

Cybersecurity in PLC

Difference between Power Cables and Signal Cables

Difference between Power Cables and Signal Cables

LES and GRT Blocks in PLC Programming

Allen Bradley Math Functions

Automatic Bottle Filling System using PLC

Automatic Bottle Filling System using PLC

SCADA and HMI Systems - Differences, Similarities, Purpose

SCADA and HMI Systems – Differences, Similarities, Purpose

PLC Program to control level of parallel tanks

Parallel Tanks Level Control using PLC Ladder Diagram Tutorial

Omron PLC Example

Design a Water Pump PLC Program using CX-Programmer

More Articles

Heat Recovery in HVAC System

Heat Recovery in HVAC System

hall-effect-sensor

Hall Effect Sensor Working Principle Animation

Omron PLC Car Parking Program

OMRON PLC Tutorial: Car Parking System Application

Field Transmitter Installation

Cables and Cable Glands Questions and Answers

Connecting Faceplates to PLC Project

Connecting Faceplate to PLC Project – HMI Tutorial

DCS

DCS

Power Electronics Objective Questions

Power Transistor Quiz

Types of Boiler Drought

What is a Boiler Draught System? – Purpose, Types, Advantages

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?