Inst ToolsInst ToolsInst Tools
  • Ask
  • 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: Conveyor Speed Logic using Structured Text in PLC
Share
Notification Show More
Font ResizerAa
Inst ToolsInst Tools
Font ResizerAa
  • Courses
  • PLC Tutorials
  • Control Systems
Search
  • Ask
  • 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 > 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 !
Difference Between PLC and CNC Machine
Motor Starter Logic using Siemens PLC Tia Portal
Car Parking System using PLC Programming
What is Live Zero in 4-20 mA Current Loop ?
PLC Program for Solenoid, Pilot Lamp, and Switch with Alarm
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
208kSubscribersSubscribe
38kFollowersFollow

Categories

Recent Comments

  • Guifty Shimica on Top Non-PLC Certification Courses for Automation Professionals
  • Guifty Shimica on Top Non-PLC Certification Courses for Automation Professionals
  • MIHARITSOA Aina Sitraka on Top Non-PLC Certification Courses for Automation Professionals
  • Vaishnavi on Free Instrumentation Course for Trainee Engineers

Related Articles

PLC to Start or Stop 3 Machines using 1 Switch Program

PLC to Start or Stop 3 Machines using 1 Switch Program

PLC Program for Counting Objects on Conveyor

PLC Program for Counting Moving Objects on Conveyor

RSlogix 500 to communicate with Excel

How to Communicate with Excel from RsLinx?

Free Allen Bradley PLC Training Course

Free Allen Bradley PLC Ladder Logic Training Course

PROFIBUS is also a Master Slave protocol

Compare Modbus, Fieldbus, and Profibus

Offline UPS

UPS Working Principle and Types – Offline and Online UPS Systems

Simple PLC example Hardware configurations

Muting Functions of Safety Control Circuits – PLC Example

Latched and Momentary Operation of Motor PLC Program

Latched and Momentary Operation of Motor PLC Program

More Articles

Digital Electronics Multiple Choice Questions

D Flip Flop Objective Questions

Encoder Principle

Encoder Working Principle

Selection of Fire and Gas Detectors

Basic Guidelines for Selection of Fire and Gas Detectors

Pressure Transmitter

Pressure Transmitter Animation

Calibration of Temperature Sensor with Indicator

Calibration of Temperature Sensor with Indicator

Deaerator

What is a Deaerator? – Working Principle

Electric Circuits Objective Questions

Electric Circuits Objective Questions – Set 5

Basic Principles of Solar Technology

Basic Principles of Solar Technology

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?