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: PLC Programming for Multi-Color Sorting Conveyor System
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 > PLC Programming for Multi-Color Sorting Conveyor System

PLC Programming for Multi-Color Sorting Conveyor System

Learn to automate a multi-color sorting conveyor system with PLC programming for sorting, counting, and managing storage efficiently.

Last updated: October 21, 2024 10:00 pm
Editorial Staff
PLC Tutorials
No Comments
Share
9 Min Read
SHARE

This article discusses the PLC Sorting and Counting program on Conveyors using Schneider Ecostruxure platform. In this PLC system the Conveyor will carry products with 3 different colors (GREEN, PURPLE, BROWN), the color sensor will sort the products carried by the Conveyor. The Storage Gate will Open if the sensor detects the product. Each product will be counted and has its own Storage Gate. The Alarm is On and the Conveyor will Stop when the quantity of products reaches the maximum storage amount.

Contents
Multi-Color Sorting Conveyor SystemSENSORS USEDCONVEYOR SEQUENCEGREEN PRODUCT SEQUENCEPURPLE PRODUCT SEQUENCEBROWN PRODUCT SEQUENCEALARM SEQUENCEProject AddressingProgramming

Multi-Color Sorting Conveyor System

This PLC program uses 5 buttons, the PB_ON (I0.0) button is used to turn ON the system, the PB_OFF (I0.1) button is used to turn OFF the system, the RESET_COUNT_GREEN (I0.5) button is used to Reset the Green product counter data, the RESET_COUNT_PURPLE (I0.6) button is used to Reset the Purple product counter data, and the RESET_COUNT_BROWN (I0.7) button is used to Reset the Brown product counter data.

SENSORS USED

The SENS_GREEN (I0.2) sensor is used to detect Green products, the SENS_PURPLE (I0.3) sensor is used to detect Purple products, and the SENS_BROWN (I0.4) sensor is used to detect Brown products.

CONVEYOR SEQUENCE

The Sorting And Counting Conveyor System will Run when the PB_ON (I0.0) button is Pressed. The CONVEYOR (Q0.0) output will be ON to carry the product.

GREEN PRODUCT SEQUENCE

The Gate GREEN_GATE (Q0.1) will OPEN when the SENS_GREEN (I0.2) sensor detects a Green product. After 4 seconds Gate GREEN_GATE (Q0.1) will CLOSE again. The memory word COUNT_GREEN_PRODUCT (MW0) will record the quantity of Green product data.

PURPLE PRODUCT SEQUENCE

The Gate PURPLE_GATE (Q0.2) will OPEN when the SENS_PURPLE (I0.3) sensor detects a Purple product. After 4 seconds Gate PURPLE_GATE (Q0.2) will CLOSE again. The memory word COUNT_PURPLE_PRODUCT (MW1) will record the quantity of Purple product data.

BROWN PRODUCT SEQUENCE

The Gate BROWN_GATE (Q0.3) will OPEN when the SENS_BROWN (I0.4) sensor detects a Brown product. After 4 seconds Gate BROWN_GATE (Q0.3) will CLOSE again. The memory word COUNT_BROWN_PRODUCT (MW2) will record the quantity of Brown product data.

ALARM SEQUENCE

The COUNT_GREEN_ALARM (Q0.4), COUNT_PURPLE_ALARM (Q0.5), and COUNT_BROWN_ALARM (Q0.6) Alarms will be ON if the quantity of products has reached 20.

The Conveyor will Stop if there is an Alarm ON.

PLC Conveyor System for Sorting and Counting Products by Color Detection
Sorting Products by Color with Storage and Alarm Features
Counting on Conveyors with PLC Programming

Project Addressing

CommentInput (I)Output (Q)Memory WordMemory BitsTimer
PB_ONI0.0    
PB_OFFI0.1    
SENS_GREENI0.2    
SENS_PURPLEI0.3    
SENS_BROWNI0.4    
RESET_COUNT_GREENI0.5    
RESET_COUNT_PURPLEI0.6    
RESET_COUNT_BROWNI0.7    
CONVEYOR Q0.0   
COUNT_GREEN_ALARM Q0.4   
COUNT_PURPLE_ALARM Q0.5   
COUNT_BROWN_ALARM Q0.6   
GREEN_GATE Q0.1   
PURPLE_GATE Q0.2   
BROWN_GATE Q0.3   
COUNT_GREEN_PRODUCT  MW0  
COUNT_PURPLE_PRODUCT  MW1  
COUNT_BROWN_PRODUCT  MW2  
TIMER_GREEN    TM0
TIMER_PURPLE    TM1
TIMER_BROWN    TM2
SYSTEM_ON   M0 
IR_TIMER_GREEN   M1 
IR_TIMER_PURPLE   M2 
IR_TIMER_BROWN   M3 

Programming

RUNG 0 (SYSTEM_ON)

In this Rung, the memory bit SYSTEM_ON (M0) will be in HIGH state if the PB_ON (I0.0) button is Pressed. The memory bit SYSTEM_ON (M0) remains in the HIGH state even though the PB_ON (I0.0) button has been Released, because it uses the SET Coil Instruction.

PLC Programming for Multi-Color Sorting Conveyor System

RUNG 1 (SYSTEM_OFF)

In this Rung, because it uses the RESET Coil Instruction, if PB_OFF (I0.1) button is Pressed, the memory bit SYSTEM_ON (M0) will become a LOW state.

RUNG 2 (CONVEYOR)

In this Rung, the CONVEYOR Output (Q0.0) will be ON if the NO contact of memory bit SYSTEM_ON (M0) in the HIGH state.

If the NC contact of COUNT_GREEN_ALARM (Q0.4) or COUNT_PURPLE_ALARM (Q0.5) or COUNT_BROWN_ALARM (Q0.6) is ON, then the Output CONVEYOR (Q0.0) will be OFF.

RUNG 3 (GREEN GATE)

In this Rung, the GREEN_GATE (Q0.1) output will be ON if the NO contact of memory bit SYSTEM_ON (M0) and the SENS_GREEN (I0.2) sensor are in the HIGH state.

The timer TIMER_GREEN (TM0) will count up to 4 seconds and after it has finished counting, the memory bit IR_TIMER_GREEN (M1) will be in the HIGH state and the GREEN_GATE (Q0.1) output will be OFF.

Program for Conveyor Systems Using Schneider PLC

RUNG 4 (PURPLE GATE)

In this Rung, the PURPLE_GATE (Q0.2) output will be ON if the NO contact of memory bit SYSTEM_ON (M0) and the SENS_PURPLE (I0.3) sensor are in the HIGH state.

The timer TIMER_PURPLE (TM1) will count up to 4 seconds and after it has finished counting, the memory bit IR_TIMER_PURPLE (M2) will be in the HIGH state and the PURPLE_GATE (Q0.2) output will be OFF.

RUNG 5 (BROWN GATE)

In this Rung, the BROWN_GATE (Q0.3) output will be ON if the NO contact of memory bit SYSTEM_ON (M0) and the SENS_BROWN (I0.4) sensor are in the HIGH state.

The timer TIMER_BROWN (TM2) will count up to 4 seconds and after it has finished counting, the memory bit IR_TIMER_BROWN (M3) will be in the HIGH state and the BROWN_GATE (Q0.3) output will be OFF.

Sorting and Counting Products on Conveyors by Color

RUNG 6 (COUNTER AREA)

In this Rung, if the NO contact of memory bit SYSTEM_ON (M0) and the SENS_GREEN (I0.2) sensor in the HIGH state, then the value in memory word COUNT_GREEN_PRODUCT (MW0) will increase (+1).

If the SENS_PURPLE (I0.3) sensor in the HIGH state, then the value in memory word COUNT_PURPLE_PRODUCT (MW1) will increase (+1).

If the SENS_BROWN (I0.4) sensor in the HIGH state, then the value in memory word COUNT_BROWN_PRODUCT (MW2) will increase (+1).

RUNG 7 (COUNTER ALARM)

In this Rung, when the NO contact of memory bit SYSTEM_ON (M0) and the value in memory word COUNT_GREEN_PRODUCT (MW0) is equal to “20”, then the Output COUNT_GREEN_ALARM (Q0.4) will be ON.

When the value in memory word COUNT_PURPLE_PRODUCT (MW1) is equal to “20”, then the Output COUNT_PURPLE_ALARM (Q0.5) will be ON.

When the value in memory word COUNT_BROWN_PRODUCT (MW2) is equal to “20”, then the Output COUNT_BROWN_ALARM (Q0.6) will be ON.

Product Sorting and Counting on Conveyors Using EcoStruxure Machine Expert

RUNG 8 (RESET GREEN COUNTER)

In this rung, the data in memory word COUNT_GREEN_PRODUCT (MW0) will be Reset to zero “0” if the RESET_COUNT_GREEN (I0.5) button is Pressed.

RUNG 9 (RESET PURPLE COUNTER)

In this rung, the data in memory word COUNT_PURPLE_PRODUCT (MW1) will be Reset to zero “0” if the RESET_COUNT_PURPLE (I0.6) button is Pressed.

RUNG 10 (RESET BROWN COUNTER)

In this rung, the data in memory word COUNT_ YELLOW_PRODUCT (MW2) will be Reset to zero “0” if the RESET_COUNT_BROWN (I0.7) button is Pressed.

Read Next:

  • PLC Program for Password Management
  • PLC Program Sequential Batch Mixing System
  • Electrical Dosing Pump PLC Programming Logic
  • Schneider PLC Example for Star-Delta System
  • Medium-Level PLC Exercise in Automation
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 Engineers Effectively do Problem-solve and Troubleshoot?
PLC Mixing Process with Adjustable Timer and Valve Control
FOR DO Statement in SCL Language
Count the Number of Bottles in Packaging Carton PLC Logic
Count the Number of Cartons in a Storage Area PLC Logic
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

Automation Engineer Troubleshooting Tips

Best Way to Build Troubleshooting Mindset for Automation Engineer

PROFIBUS is also a Master Slave protocol

Compare Modbus, Fieldbus, and Profibus

Failsafe interlock Design

Failsafe Wiring Practices

Free Omron PLC Programming Course in HINDI

Free Omron PLC Programming Course in HINDI

IP Address Change in Simatic

PLC Configuration of Profinet I/O System

0 to 10 mA Current Loop

What is Live Zero in 4-20 mA Current Loop ?

Proper Earthing Practices Used for PLC Control Panel

Proper Earthing Practices Used for PLC Control Panel

Automatic Car Door Simulation

Automatic Door Operation PLC Programming and Simulation

More Articles

Free Schneider PLC Training - Automation Course

Free Schneider PLC Training – Automation Course

Digital Electronics Multiple Choice Questions

Random Access Memory Objective Questions – Part 3

Wrongly terminated Thermocouple (TC) wires

Too Low-Temperature Readings after a Failed Thermocouple Change

Power Systems Questions & Answers

Power Systems MCQ Series 9

Turbine Supervisory Instrumentation

What is Turbine Supervisory Instrumentation (TSI)?

Electronic Devices & Circuits Objective Questions

Electronic Devices & Circuits Quiz – Set 8

Magnetic Tape Recorders Objective Questions

Magnetic Tape Recorders Objective Questions

Types of Cable Lengths in Ethernet Network

Types of Cable Lengths in Ethernet Network

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?