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

Laws of Boolean Algebra using Ladder Logic
Tia Portal – OB30 Cyclic Interrupt Organization Block
PLC Programming for 3 Motors control in Ladder logic
MODBUS ASCII Communication Protocol Explained
Programmable Logic Controller Maintenance Check Points
Instrumentation System Architecture
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

Automate Batch Mixing with Repeated Cycles in Omron PLC
What is PLC Redundancy?
PLC Raw Count Calculation for Pressure Transmitter
How to Check Address Overlapping in Tia Portal?
How to Install GSD File in Step 7 PLC using Simatic Manager?
Why different PLC Programming Languages were Developed?
UPS Selection Factors for a Control System
Two Hand Press Safety Control Circuit

Keep Learning

Traces in TIA Portal

What is Trace Function in Tia Portal?

Motor Feedback Fail Logic in PLC

Motor Feedback Fail Logic in PLC

Types of Switches

Electrical Switches Principle & Types

S7-1200 Hardware Configuration

S7-1200 Hardware Configuration – Siemens PLC Tutorials

PLC Ladder Logic for Demultiplexer

1 to 8 Demultiplexer PLC ladder diagram

Siemens PLC

Will PLCs become obsolete?

SCADA Interview Questions

SCADA Interview Questions and Answers

PID Setup

PID in Studio 5000

Learn More

Types of Control Valves Noise

Types of Control Valves Noise

Elevator PLC Ladder Logic

Elevator PLC Ladder Logic

Chemical Battery

Batteries

Control Systems Questions & Answers

Control Systems Objective Questions & Answers – Set 1

Download Free HMI software – CODESYS

SCADA Parts

SCADA Hardware and Software

Bimetallic Thermometer

Bimetallic Thermometer

Scaling in PLC

How to do Scaling for Analog Input in RSLogix 500?

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?