Inst ToolsInst ToolsInst Tools
  • 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: Structured Text PLC Example for Motor Interlocking and Control
Share
Notification Show More
Font ResizerAa
Inst ToolsInst Tools
Font ResizerAa
  • Courses
  • PLC Tutorials
  • Control Systems
Search
  • 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 > 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 !

Recommended Articles

PLC Program for Password Management using Structured Text
PLC Logic Example on Multiple Switches and Motors
Step by Step Guidelines for Downloading Free PLC software
Compare Two Offline PLC Projects
PLC Program for Trash Compactor
How to Create Faceplate in FactoryTalk View Studio?
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
208kSubscribersSubscribe
38kFollowersFollow

Categories

Recent Comments

  • William Snyder on Top Non-PLC Certification Courses for Automation Professionals
  • 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

Related Articles

Top Free PLC Software

Top Free PLC Software

Move function block

Move Instruction in Tia Portal

Analog Instruments

Explaining Various Types of Analog Instruments

PLC Technique for IO Mapping

PLC Techniques for I/O Mapping

Sink or source PNP or NPN Normally Open or Normally Closed Input v. output. output

Sink or Source? Normally Open or Normally Closed?

Siemens PLC Simulator and Plant Simulation Software

How to use Simulator in Siemens PLC?

PLC Logic for Stairway Lighting

Smart Automation Solutions: PLC Logic for Stairway Lighting

Distributed Control System Interview Questions

More Articles

Valve-Kv-Sizing-Calculator

Valve Kv Sizing Calculator

GSD File installation in Simatic Manager

How to Install GSD File in Step 7 PLC using Simatic Manager?

shape of the trim determines the valve characteristic

Control Valve Characteristics

Steam conditioning valves

Concept of Steam Conditioning Valves

Electrical and Instrumentation Engineering Documents

Electrical and Instrumentation – Automation Pre-engineering Documents

Types of active transducers

Types of Transducers in Instrumentation

Single-beam non-dispersive analyzer

Single-beam Non-dispersive Analyzer

Differential Pressure Sensor with pair of Strain Gauges

Differential Pressure Sensor with Pair of Strain Gauges

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?