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: Structured Text PLC Example for Motor Interlocking and Control
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 > Structured Text PLC Example for Motor Interlocking and Control

Structured Text PLC Example for Motor Interlocking and Control

In this Structured Text PLC Example, learn how to interlock two motors and run them simultaneously to control them as per logic.

Last updated: September 17, 2024 11:19 am
Viral Nagda
PLC Tutorials
1 Comment
Share
4 Min Read
SHARE

Motors are a common type of output used in industrial automation. Motors control and interlocking must be properly done by a programmer for efficient and reliable operation. When he is writing the logic, he often thinks first which language to write in.

Contents
Motor Interlocking and ControlStructured Text PLC Example

One of the most highly popular languages in PLC programming is structured text. Due to it’s syntax similar to an IT language program, it is preferred for complex calculations and logic writing. In this post, we will see how to interlock two motors and run them simultaneously through structured text PLC programming.

Motor Interlocking and Control

Let us understand the case scenario first. There are two motors in the circuit. When the start button is pressed, the first motor will run for 10 seconds and after that, it will stop and the second motor will run for 10 seconds. This continues until the stop button is pressed, which resets and stops the whole logic. Now, when the first motor is running and someone presses the bypass button, then it will stop immediately and start the second motor. The same goes for the second motor.

Now, let us start the logic development. First, let us freeze the IOs.

There are four digital inputs – start push button, stop push button, motor-1 bypass button, and motor-2 bypass button.

There are two digital outputs – motor-1 and motor-2.

Structured Text PLC Example

Refer to the below image. As per the first condition, when the start button is pressed, then logic starts. So, we write it in an if statement and set the logic running bit to 1.

Now, when the stop button is pressed, then logic stops. So, we write it in an if statement and set the logic running bit to 0.

Structured Text PLC Example for Motor Interlocking and Control

Now, we start the timer logic. When logic starts, then motor-1 runs for 10 seconds and then stops. So, we link the logic running bit and an internal bit – motor-1 timer done bit as negate. When the timer finishes, then we set motor-1 timer done bit to 1 and this cuts off the timer-1.

Next, motor-2 runs for 10 seconds after motor-1 timer has been done and then stops. So, we link the logic running bit and the internal bit – motor-1 timer done bit. When the timer finishes, then we set motor-1 timer done bit to 0 and this cuts off the timer-2. The cycle repeats once again.

To bypass the timers, we have used two separate push buttons. On pressing the motor-1 bypass button, timer-1 will be done immediately. So, we link it with the OR condition with the motor-1 timer done. On pressing the motor-2 bypass button, timer-2 will be done immediately. So, we link it with the OR condition with the motor-2 timer done.

Now, to turn the motors on or off, we link the timer input condition to it. This makes the logic simple to use.

In this way, we saw how to operate the motors simultaneously with interlocks.

Read Next:

  • PLC Ladder Logic for Alarm Security System
  • How Modbus is used in Industrial Networks?
  • Conveyor Speed Logic using Structured Text
  • FBD PLC Example for Traffic Light System
  • Burglar Alarm Security System PLC FBD 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 !

Continue Reading

Interconnection between PLC, MCC, LCP & Pumps – Video
Normally-open and Normally-closed Switch Contacts
PLC Ladder Logic for Tanks Filling as per Priority
Parts of PLC
Single-acting Cylinder OR Logic Operation (PLC and Sensors)
How to Use ModScan Software for Testing Modbus Communication?
Share This Article
Facebook Whatsapp Whatsapp LinkedIn Copy Link
Share
1 Comment
  • Abduslam sultan says:
    October 14, 2024 at 4:00 pm

    thanks for great subject and good explanation

    Reply

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

Function of Racks in PLC – Types of SIEMENS S7-400 PLC Racks
Structured Text in PLC: Parking Information Systems
Speed Control of Pneumatic Cylinder (Explanation with PLC)
Program Flow Control Instructions in PLC Programming
PLC Sequencer Instruction with Example
What is a PLC Retrofitting Project? – Importance, Procedure
Example of Controlling the PLC Output using Push Buttons
What is Ladder Diagram Programming ?

Keep Learning

What is PLC

What is a PLC? – Programmable Logic Controller

PROFIBUS is also a Master Slave protocol

Compare Modbus, Fieldbus, and Profibus

PLC Logic for Water Pumping and Chemical Addition

Developing PLC Logic for Water Pumping and Chemical Addition

Difference between PLC and Computers

Difference between PLC and Computers

How to Prevent Ground Loops in Analog Circuits?

How to Prevent Ground Loops in Analog Circuits?

PLC Cabinet

PLC Programming Videos

Automatic Motor Forward and Reverse Control using Timer

Automatic Motor Forward and Reverse Control using Timer

S7 1200 PLC Program

Siemens S7 1200 PLC configuration in TIA Portal

Learn More

Pressure Gauge Calibration according to Standard DKD-R-6-1

Pressure Gauge Calibration according to Standard DKD-R-6-1

Electrical Machines Objective Questions

Electrical Machines MCQ Series 13

RTD Calculator Software

RTD Calculator Software

Digital Electronics Objective Questions

Digital Electronics Objective Questions – Set 8

Most Frequently Asked Instrumentation Questions

General Instrumentation Questions

Transmission and Distribution Objective Questions and Answers

175+ Transmission and Distribution Objective Questions and Answers

Digital Electronics Multiple Choice Questions

Counter Implementation Objective Questions

Nonlinear Control Systems

Stability of Nonlinear System – II

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?