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 Programming Example with Pushbutton and Motor
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 Programming Example with Pushbutton and Motor

PLC Programming Example with Pushbutton and Motor

In this article, you will learn the PLC programming example with pushbutton and motor control applications with source code.

Last updated: April 5, 2024 3:48 pm
Editorial Staff
PLC Tutorials
No Comments
Share
4 Min Read
SHARE

In this article, you will learn the PLC programming example with pushbutton and motor control applications with source code.

Contents
PLC Programming ExamplePractical PLC Tutorial VideosInputs/OutputsPushbutton and Motor LogicLogic ExplanationTest Case

Note: The PLC programming example is prepared to learn the basic knowledge of programmable logic controllers. The real-world application will be much more safety-featured with a lot of interlocks, trips, permissive, etc.

PLC Programming Example

Problem Statement:

Design a PLC ladder logic for the following application.

We are using a Push Button to control a Motor.

When the Push Button is pressed and released,

  • Motor 1 will be ON after 10 seconds.
  • After 10 seconds, Motor 1 goes OFF.

Practical PLC Tutorial Videos

This PLC tutorial video explains the complete programming from the initial step with a detailed explanation for the engineers.

PLC Programming Example with Pushbutton and Motor

Inputs/Outputs

Digital Inputs:

The required inputs are listed below.

Push Button: I0.0

Digital Outputs:

The required outputs are listed below.

Motor 1: Q0.0

Pushbutton and Motor Logic

PLC Programming Example with Pushbutton and Motor

Logic Explanation

Here we used Normally Open Contact for Push Button and Memory Bit.

Timer Function Block Type TP and Timer Function Block Type TON is used for Motor 1.

In Rung 0:

1) Normally Open Contact is used for Push Button to Turn ON Memory Bit.

2) Latching is used for Memory Bit so that when the Push Button is released, Memory Bit still remains ON.

In Rung 1:

1) Normally Open Contact is used for Memory Bit to Turn ON Motor 1.

2) Timer Function Block type TON is used for Motor 1 to delay the Turning ON.

3) Timer Function Block type TP is used for Motor 1 to delay the turning OFF time.

So, When Push Button is pressed and released, Memory Bit Turns ON in Rung0 and Rung1. When Memory Bit Turns ON in Rung1, Timer starts in Timer Function Block type TON which is set to 10 seconds and then, it delays 10 seconds to Turn ON Motor1.

After 10 seconds Motor 1 Turns ON and when Motor 1 Turns ON, Timer starts in Timer Function Block type TP which is set to 10 seconds and it delays 10 seconds to Turn OFF Motor 1. After 10 seconds, Motor 1 Turns OFF.

Test Case

The PLC program simulated and results shown below.

When Push Button is Pressed and Released

When Push Button is pressed and released, Memory Bit will Turn ON in Rung0 and Rung1.

normally open Start pushbutton plc program

As Memory Bit turns ON in Rung1, Motor 1 will Turn ON after 10 seconds because Timer Function Block type TON is used for Motor 1 which delays the time of Motor 1 to Turn ON.

Ladder Logic Programming of Push Button Latching

After 10 seconds, Motor 1 will Turn OFF as Timer Function Block type TP is also used for Motor 1 which delays the time of Motor 1 to Turn OFF.

How does a Latching work in PLC program

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:

  • Control PLC Output using Push Buttons
  • Boolean Logic to PLC Programming
  • PLC Program for Solenoid & Pilot Lamp
  • Define Normal Status of a Process Switch
  • Normally-Closed Contact for Stop Buttons
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

Animation of Electromagnetic Relay
What is SCADA System?
PLC Ladder Logic Simulator Mobile Apps For Android
PLC Based Product Sorting Machine System – Lift Control
Up Down Counter Instruction in PLC
Types of CPU Communication Ports in Siemens PLC
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

Relay Operation, Types, Symbols & Characteristics
Basics of Loop Checks
4-20 mA Transmitter Wiring Types : 2-Wire, 3-Wire, 4-Wire
SCADA Software and their Comparison
How to Simplify PLC Coding Using Karnaugh Maps?
DeMorgan’s Theorems using Ladder Diagram
#13 PLC Best Practices – Disable Unused Communication Ports
Learn about SCADA and HMI Systems

Keep Learning

Garage Door Roller Shutter

Shutter Door Control using Motor and Limit Switches

Industrial Automation Cold and Hot Standby

Difference between Cold Standby and Hot Standby

Why Use Normally-Closed Contact for Stop Buttons

Why Use Normally-Closed Contact for Stop Buttons?

Laws of Boolean Algebra using Ladder Logic

Laws of Boolean Algebra using Ladder Logic

Basics of PID Controllers

PID Controllers in Closed Loop Control Systems – PLC Basics

Upgrading and Migration of PLC Systems

Upgrading and Migration of PLC Systems

DCS

DCS

TP Timer in CodeSys

Timers in Codesys – Timer ON, Timer OFF, Pulse Timer

Learn More

Garage Door Roller Shutter

Shutter Door Control using Motor and Limit Switches

Fire Hydrant System

Basics of Fire Fighting Hydrant Systems

Networking Interview Questions

Top 100 Networking Interview Questions & Answers

Electrical Machines Questions and Answers

Induction Motor Rotor EMF, Current and Power

Power Electronics Objective Questions

AC Voltage Controllers Multiple Choice Questions

Water Treatment Plant SCADA

Typical HMI Screen Design for Water Treatment Plant

Feed forward example

What is Feedforward Control ?

LED Indications on PLC

Getting to Know the LED Indications on GE Make PLC

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?