Sorting & Distribution Line PLC Programming – Advanced Logic

In this advanced PLC logic, detect different part sizes and sort them as per box sizes and place them in the trays.

The parts are nothing but different size boxes such as small, medium, and large. The robot places different size boxes randomly on the conveyor. Then the system detects the box size and moves to the respective conveyor and places them in the respective trays.

Sorting & Distribution Line PLC Programming

The below simulation shows the sorting and distribution line system operation.

Sorting & Distribution Line PLC Programming

Inputs and Outputs

TypeDevice No.Device nameOperation
InputX0Starting point (Supply)ON when the part is detected.
InputX1UpperON when the part is detected.
InputX2MiddleON when the part is detected.
InputX3LowerON when the part is detected at the right end.
InputX4SensorON when the part is detected at the right end.
InputX5SensorThe conveyor moves forward when Y1 is ON.
InputX6Detect partON when the part is detected in front of the pusher.
InputX10Starting point (Unload)ON when the unloading robot is at the start point.
InputX11Part on tableON when the part is on the table.
InputX12Robot operation finishedON when the robot operation is finished.
OutputY1Conveyor forwardThe conveyor moves forward when Y2 is ON.
OutputY2Conveyor forwardMoves toward the front when Y3 is ON.
OutputY3Sorting wingThe conveyor moves forward when Y4 is ON.
OutputY4Conveyor forwardThe conveyor moves forward when Y5 is ON.
OutputY5Conveyor forwardExtends when Y6 is ON and retracts when Y6 is OFF. The pusher cannot be stopped in the mid-stroke.
OutputY6PusherThe robot moves part to tray when Y7 is ON. A process cycle begins.
OutputY7Unload commandThe robot moves the part to tray when Y7 is ON. A process cycle begins.
OutputY10RedLit when Y10 is ON.
OutputY11GreenLit when Y11 is ON.
OutputY12YellowLit when Y12 is ON.

Program Description

Initiating the push button PB1 (X20) on the control panel triggers the Supply command (Y0), thereby setting the robot in motion for moving the object.

Once the robot has completed its task of moving the part and reverting to its original position, the Supply command (Y0) is deactivated. Activating the Supply command (Y0) propels the robot to provide a part.

Activating the switch SW1 (X24) on the control panel instigates the conveyors to proceed forward. Conversely, deactivating the switch causes the conveyors to halt.

Conveyor-carried parts of varying sizes, namely large, medium, and small, are sorted by input from the Upper (X1), Middle (X2), and Lower (X3) sensors and delivered to designated trays.

Large parts are directed to the rear conveyor when the Sorting wing (Y3) on the split conveyor is activated, followed by the part being transported on the conveyor and eventually descending from the right edge.

Medium parts are led to the front conveyor when the Sorting wing (Y3) on the split conveyor is deactivated and subsequently transferred to the tray by the robot.

Small parts are routed to the rear conveyor upon activation of the Sorting wing (Y3) on the split conveyor. Once the Detect part sensor (X6) in the split conveyor is activated, the conveyor is brought to a halt and the part is nudged onto the tray.

When the Robot detects a part on the table (X11), the Unload command (Y7) is activated. Once the robot finishes its operations, indicated by the Robot operation finished (X12) status turning on (which happens when a part is deposited on the tray), the Unload command (Y7) is deactivated.

Provided the switch SW2 (X25) on the control panel remains activated, an automatic supply of a new part occurs under the following conditions:

  • When the robot initiates the transportation of a medium part.
  • When a small part is added to the tray, or a large part descends from the right edge of the conveyor.

The display lights flash in the following manner:

  • The red light indicates the robot is in the process of supplying a part.
  • Green light signifies the conveyor is in motion.
  • Yellow light is illuminated when the conveyor is at a standstill.

PLC Program

Sorting & Distribution Line PLC Programming
PLC Sorting Ladder Logic

Source: Mitsubishi Electric

If you liked this article, then please subscribe to our YouTube Channel for Instrumentation, Electrical, PLC, and SCADA video tutorials.

You can also follow us on Facebook and Twitter to receive daily updates.

Read Next:

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

Leave a Comment