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
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 > 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 Program to Read Temperature in PLC
PLC Program for Mixing Tank
How to Download GX Works? Mitsubishi PLC Software
PLC Structured Text Program for Light Sequences via Timers
Communication between Wincc and Tia Portal
PLC Program for Entry and Exit Control of Car Parking
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

PLC Emergency Stop Example Program
What is NOR Flash Memory in PLC?
Industrial Automation Pre-Engineering Design Documents – Project & Process
Pulse Timer Instruction in PLC Programming
PLC Instruction List Program for Basic Instructions
PLC Program for Alarm Security System
Difference Between Normal Counters and Fast Counters – Learn PLC
Basics of Industrial Communication Networks

Keep Learning

Parking Lights PLC Program Explained with Video

Parking Lights PLC Program Explained with Video

Connecting Faceplates to PLC Project

Connecting Faceplate to PLC Project – HMI Tutorial

PROFIBUS is also a Master Slave protocol

Compare Modbus, Fieldbus, and Profibus

Compare Servo Motor and Stepper Motor

Compare Servo Motor and Stepper Motor

Draw a Ladder Logic to control a bulb using push buttons in PLC

Concept of Latching in PLC

Select Security type Intouch

How to Add Security in InTouch SCADA?

Your First Steps Through STL Language

Your First Steps Through STL Language

PLC Conveyor Forward and Reverse Logic

Advanced PLC Conveyor Control: Forward and Reverse Rotation

Learn More

Data Instance in PLC

Tia Portal – Different Instances of Calling a Function Block

buoyancy level transmitter

Displacer Level Transmitter Question & Answer

Calculate voltage across RTD

Resistance Temperature Detector (RTD) Questions – 2

PN Junction Questions & Answers

Measurement and Instrumentation Objective Questions – Part 5

Instrument Linearity Error

Instrument Errors – Zero, Span, Linearity

Sand Probe Functional Testing

Sand Probe Functional Testing

Reformer Fan Bearing Change Times cut by 90%

Reformer Fan Bearing Change Times cut by 90%

Valve Face to Face Dimension

Face to Face Dimension of Control Valve

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?