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

How to Automatically Close Pop-up in FactoryTalk View Studio?
PLC Digital Input and Digital Output Modules
How a 4-20mA Transmitter Works?
PLC Automatic Door Control System – Programming Example
Converter Instruction in Siemens PLC Programming
DCS Commissioning Steps
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

SCADA Systems

SCADA Systems

Preventa XPS MC, XPS MP - Safety controllers

High-end Programmable Logic Controller – Schneider PLC

Siemens PLC Course for Beginners

Siemens PLC Course for Beginners: Problems and Solutions

Namur Digital Input Card

What is Namur Digital Input Card?

Sequential Operation of Output Bits using Two Push buttons

Sequential Operation of Output Bits using Two Push buttons

Automated Test Bench - Complex PLC Programming Examples

Automated Test Bench – Complex PLC Programming Examples

PLC Conveyor Forward and Reverse Logic

Advanced PLC Conveyor Control: Forward and Reverse Rotation

Node-RED in PLC Automation

Node-RED in PLC Industrial Automation

More Articles

Machine Tool and Coolant Control PLC Ladder Logic

Machine Tool and Coolant Control: PLC Ladder Logic Design

stepper motors Animation

Fundamentals of DC Motor Animation

If Else Statement in SCL Language

If Else Statement in SCL Language

What is an RTU - Remote Terminal Unit

What is an RTU? – Remote Terminal Unit

Zero Interface Level Calculation

How to do Interface Level Calculation using DP Transmitter ?

Automatic Coffee Machine

Automatic Coffee Vending Machine – PLC Logic Programming

Rewire Tool

What is Rewire Tool in Simatic Manager?

Electrical Machines Objective Questions

Electrical Machines MCQ Series 3

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?