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

What is a Wet Contact? – Basics of PLC Wiring
Instrumentation Earthing
PLC based Gas Detection System using Ladder Logic Project
Structured Text in PLC: Parking Information Systems
Allen Bradley PLC Interview Questions and Answers
PLC Logic: Control Spray Nozzle, Fans, and Puncher
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

PLC Program for Food Processing Industry
Pulse Generation using Timer in Siemens PLC
PLC Programming for Pumping and Draining System
Siemens PLC Interview Questions and Answers
How to Connect Mitsubishi FX3U PLC with Weinview MT6071iE HMI?
Explaining Various Types of Analog Instruments
Motor ON OFF Logic in PLC
PLC Program – Controls Conveyors ON and OFF Sequence

Keep Learning

PLC SCADA Water Pump

PLC Program for Controlling a Water Pump with 3 Power Sources

High-Speed and Fast Counters in PLC

What are High-Speed Counters and Fast Counters in PLC?

Global Data Blocks in PLC

What is a Data Block? Global Data Blocks in PLC

Field Instruments Questions and Answers

Control Room and Field Instruments Questions and Answers

PLC Motor Control Ladder Logic

PLC Program for Star Delta Motor Starter

PLC programming for clothes washing machine automation

LS Electric PLC Program Example: Clothes Washing System

Select Security type Intouch

How to Add Security in InTouch SCADA?

Pneumatic valve operation in sequence mode

Sequential PLC Programming for the Pneumatic Valves

Learn More

Permanent magnet moving coil instruments (PMMC)

Permanent Magnet Moving Coil Instruments (PMMC)

Change-of-Quantity Flow Measurement

Change-of-Quantity Flow Measurement

Laws of Thermocouples

DP transmitter Errors

DP Transmitter Calibration Errors

Password Protect Apps and Files

5 Best Mobile Apps to Password Protect Applications and Files

custom metal fabrication

Custom Metal Fabrication Techniques for Quality Machined Parts

GuideLines for Loop Checks

How to Do Loop Checks During Plant Pre-Commissioning

Capacitive Tank Gauges

Capacitive Tank Gauges

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?