Advanced PLC Programming for Defective Parts Sorting

Advanced PLC programming for defective parts sorting to distinguish between good and bad parts and then transport them via conveyors.

Advanced PLC Programming for Defective Parts Sorting

The below simulation shows the good and bad products identification and sorting the products based on their quality using PLC ladder logic.

The conveyors are used to move the products. The conveyors are started and stopped when the products are delivered on the conveyor and during the drilling operation.

The drill machine is used for drilling the products as per the design. Sometimes the drilling operation may damage the products.

A sensor detects the quality of the products and a pusher is used to push the bad products into another storage bin.

Advanced PLC Programming for Defective Parts Sorting

PLC Inputs and Outputs

The below table lists the required inputs and outputs of the PLC system.

TypeDevice No.Device nameOperation
InputX0DrillingON while drilling.
InputX1Part under drillOne part is supplied when Y0 is ON: A large metal cube.
InputX2Drilled correctlyON when the part is drilled correctly. The previous result is cleared when drilling starts.
InputX3Drilled wrongON when the part is detected at the left end.
InputX4SensorON when the part is detected at the right end.
InputX5SensorON when the part is detected in front of the pusher.
InputX10SensorON when the part is not drilled correctly. The previous result is cleared when drilling starts.
OutputY0Supply commandThe conveyor moves forward when Y1 is ON.
OutputY1Conveyor forwardThe conveyor moves forward when Y3 is ON.
OutputY2Start drillingStarts drilling when Y2 is ON (A process cycle that cannot be stopped partway).
OutputY3Conveyor forwardExtends when Y5 is ON and retracts when Y5 is OFF. The pusher cannot be stopped in the mid-stroke.
OutputY5PusherExtends when Y5 is ON and retracts when Y5 is OFF. The pusher cannot be stopped in the mid stroke.

Program Description

This project aims to differentiate between good and defective parts using sensors and sorting them accordingly. The project consists of two key areas: overall control and drill control.

Overall Control

There is a pushbutton named PB1 (X20) on the control panel. When you press PB1, it triggers the Supply command (Y0) for the hopper, causing it to supply parts. Releasing PB1 deactivates the Supply command, stopping the hopper.

There is a switch, SW1 (X24), on the control panel. When you turn SW1 ON, the conveyors start to move forward. Turning SW1 OFF halts the conveyors.

Drill Control

Now let’s discuss the control of the drill:

When the Part under the drill sensor (X1) within the drill is activated, the conveyor halts.

The drilling process commences when the Start drilling command (Y2) is activated. It stops when the Drilling sensor (X0) is activated.

After one complete cycle of drill operation, if Start drilling (Y2) is activated, either the Drilled correctly (X2) or Drilled wrong (X3) sensor is triggered.

Note that the drill can’t be stopped mid-operation. In this PLC simulation, every third part is considered defective (A part with multiple holes also falls into the defective category).

When the Detect part sensor (X10) in the pusher identifies a defective part, the conveyor stops, and the pusher moves the part onto the ‘Defective’ tray.

Remember that when the actuating command for the pusher is ON, it fully extends. When the command is OFF, the pusher fully retracts.

A part that passes inspection continues along the conveyor to the ‘OK’ tray located at the right end.

PLC Programming

PLC Ladder Logic for Defective Parts Sorting

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

Share via
Follow us and never miss an update!