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 !
How to Configure an Alarm in InTouch SCADA?
High-end Programmable Logic Controller – Schneider PLC
PLC Application for Stamping Operation – Example Programming
Communication between InTouch Scada and Allen Bradley PLC
Concept of DCS in Industrial Automation
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

  • 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
  • MIHARITSOA Aina Sitraka on Top Non-PLC Certification Courses for Automation Professionals

Related Articles

Fail Safe Switch Circuit

Basics of Fail-safe Circuits

PLC attendance system design

Attendance System PLC Program using CX-Programmer

Siemens PLC Write Protection

How to Protect Siemens PLC using Password?

PLC Programming Course Online Free

PLC Programming Course Online Free

PLC Power Supply and Operating Voltages

PLC Power Supply and Operating Voltages

What is a Line Choke or Reactor in a VFD

What is a Line Choke or Reactor in a VFD?

Ladder Logic Counters Instruction

Up Counter PLC Program

VFD Braking

DC Injection Braking in VFD

More Articles

Components of CCTV System

Free Download CCTV Book

Automatic Transfer Switch

Automatic Transfer Switch (ATS) Using Classic Control Circuit

Lightning Arrester Bursts Problem

Frequent Feeder-A Lightning Arrester (LA) Bursts – Root Cause Analysis

Boiler Feed Water Circulation System

Boiler Feed Water Circulation System

Direct Acting Solenoid Valve

Top 5 Things for selecting a Solenoid Valve

Measurement and Instrumentation Objective Questions

Measurements & Instrumentation Quiz – Set 8

What are Fire Branches?

What are Fire Branches?

Optimal Control Systems

The State Regulator Problem

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?