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: Conveyor Speed Logic using Structured Text in PLC
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 > Conveyor Speed Logic using Structured Text in PLC

Conveyor Speed Logic using Structured Text in PLC

In this article, we will see how to write a conveyor speed control logic using structured text language in PLC controller.

Last updated: October 7, 2024 4:15 pm
Viral Nagda
PLC Tutorials
No Comments
Share
5 Min Read
SHARE

Whenever a PLC programmer starts to develop logic, the first thing he faces is which language to select. As there are five languages in PLC programming, choosing the right one according to your requirements is necessary for easy understanding.

Contents
Conveyor Speed LogicStructured Text in PLC

Structured text is a language which is high-level and used by many programmers for complex calculations and algorithms. One of the general logic used in many systems is conveyor speed control. In this post, we will see how to write a conveyor speed control logic using structured text language.

Conveyor Speed Logic

First, let us see the test bench criteria and condition of the logic. As soon as the start button is pressed, the conveyor will start. When the stop button is pressed, the conveyor will stop.

When the conveyor is running, a three-speed selector switch will be taken into consideration. It will be an analog input with a preset speed of 10%, 40% and 80%.

Corresponding to this, the actual PLC input in raw counts will be 5, 20, and 40. Whichever speed input is received, the speed target percentage will be moved to the analog output of the conveyor speed reference.

When the conveyor is not running, then the speed too will be zero.

Structured Text in PLC

Now that we have seen the question, let us come up with an answer using structured text language. Refer to the below image for the logic written.

We have used two inputs – start and stop push buttons, one output – logic running, one analog input – for speed input, and one analog output – for speed reference.

Conveyor Speed Logic using Structured Text in PLC

Now, let us start developing the PLC logic. As per the first condition, when we press start, the conveyor turns on and when we press the stop button, the conveyor turns off. So, we have used an if statement. If the start push button is received, then the conveyor will run; and when the stop button is received, then the conveyor will stop.

[For comparing, “=” is used and for assigning a value, “:=” is used. Each statement needs to be terminated by a semicolon and a preceding word – “END_IF”. Semicolon does not come in the condition; it comes in the assignment statement. Refer to the image for more understanding.]

Now, when the conveyor is running, we use the analog input as speed input. In the field side, it is a 3-way selector switch. At the first position, a raw count of 5 is received in the input. At the second position, a raw count of 20 is received in the input. At the third position, a raw count of 40 is received in the input.

For simplicity and shortcuts, we use case statements. As the name implies, it takes the case number of the analog input. So, when the number is 5, we move a value of 10 in the analog output. When the number is 20, we move a value of 40 in the analog output. So, when the number is 40, we move a value of 80 in the analog output.

As per the last condition of the question, by pressing the stop button, the speed should be zero. So, on this input, we have reset the conveyor output bit and also moved the value ‘0’ in the analog output. This is written in the else statement. This means, if the conveyor is running, then move analog speeds, else move zero.

In this way, we have seen the conveyor speed logic using structured text.

Read Next:

  • Difference Between PLC and CNC Machine
  • PLC Conveyor Ladder Logic Programming
  • AI, AO, DI, DO Questions (PLC I/O Types)
  • Global Acknowledgment in Safety PLC Logic
  • How to Detect Speed of Conveyor in PLC?
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

PLC Programming for Baking with Auto and Manual Modes
PLC based Auto/Manual Operation of Roll down Shutters in Industry
Parts of PLC
Basic PLC Alarm Programming Example
PLC Brands Software Information
How to Choose the Right Industrial Automation Solution?
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

Tia Portal – OB30 Cyclic Interrupt Organization Block
Features of Scada Which are Must in an IoT System
PLC Program for Control Valve Scaling
Difference Between Static and Temp Memory in Siemens PLC TIA Portal
PLC Program for Flow Totalizer
Functions of SCADA
How to Solve Electrical Ground Loop Problems?
Difference Between FC and FB in Tia Portal

Keep Learning

Motor Feedback Fail Logic in PLC

Motor Feedback Fail Logic in PLC

Current to Voltage Conversion Circuit

How to Convert Current to Voltage using Resistor ?

Failsafe interlock Design

Failsafe Wiring Practices

One-Shot Rising and Falling Edge Instructions in Rockwell PLC

One-Shot Rising and Falling Edge Instructions in Rockwell PLC

OFF Delay Timer using PLC

OFF Delay Timer using PLC

How-to do Security of SCADA Systems

How-to do Security of SCADA Systems?

PLC Program for Controlling Sequence of Conveyors with Interlocking

PLC Program for Controlling Sequence of Conveyors with Interlock

PLC Ladder Logic Example

PLC Ladder Logic Example

Learn More

PLC Tag Naming Conventions

PLC Tag Naming Conventions

De-energized Electrical Circuits

De-energized Electrical Circuits, Networks, and Equipment

Turbine and Compressor Control System

Turbine and Compressor Control System

Electrical Machines Questions and Answers

Induction Motor Rotor Frequency

Machine Learning

Difference Between Machine Learning and Artificial Intelligence?

Dual Solenoid Valve on Control Valve

Why we Require Dual SOV on a Control Valve?

Advantages of Pneumatic Systems in the Automotive Industry

Advantages of Pneumatic Systems in the Automotive Industry

Displacement Level Transmitter in situ calibration

Displacer (buoyancy) Level Transmitter Principle, Limitations, Design, Installation & Calibration

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?