Automating a Honey Bottling Line: A PLC and Vision System Solution

plc

In a recent project, I had the opportunity to design, install, and program a Programmable Logic Controller (PLC) system, along with a vision system, for a friend's honey bottling business to boost production efficiency and ensure safety. This post outlines the process using the STAR (Situation, Task, Action, Result) framework, including technical details like ladder diagrams and structured text for the PLC programming, as well as the vision system setup.

Situation

My friend's honey business was struggling with a manual bottling process that was slow, labor-intensive, and prone to errors. The operation relied heavily on human labor, which led to inconsistent bottle fill levels and occasional safety concerns due to manual handling near moving equipment. With growing demand, they needed a solution to increase output, ensure consistent quality, and improve worker safety.

Task

The goal was to design and implement an automated bottling system to:

Action

1. System Design

I began by assessing the existing bottling setup and identifying bottlenecks. The manual process involved filling, capping, and labeling bottles, with workers manually positioning bottles and monitoring fill levels. I designed a system with the following components:

The system was designed to automate bottle positioning, filling, and capping, with the vision system ensuring quality and safety.

2. Installation and Wiring

I installed the conveyor system and mounted the PLC in a control cabinet. The wiring process included:

Power distribution was managed with a 24V DC supply for sensors and a 120V AC supply for the conveyor motor and solenoids. All wiring followed NEC standards, with proper grounding and cable management to ensure reliability.

3. PLC Programming

The PLC was programmed using both ladder logic and structured text in Studio 5000 to control the bottling line. Below are simplified examples of the code.

Ladder Diagram

The ladder logic controlled the conveyor and filling process based on sensor inputs.

            plc2
            
Structured Text

Structured text was used for more complex logic, such as timing the fill process and handling vision system feedback.

(* Structured Text Example for Fill Control *)
IF Bottle_At_Fill_Station AND NOT Hand_Detected THEN
    Fill_Valve := TRUE;
    Fill_Timer(IN := TRUE, PT := T#3s);
    IF Fill_Timer.Q THEN
        Fill_Valve := FALSE;
        Fill_Timer(IN := FALSE);
    END_IF;
ELSE
    Fill_Valve := FALSE;
END_IF;

(* Vision System Feedback *)
IF Vision_Fill_OK THEN
    Move_Bottle := TRUE;
ELSE
    Reject_Bottle := TRUE;
END_IF;
            

4. Vision System Setup

The Cognex In-Sight vision system was configured to:

The vision system was trained with sample images of correctly filled bottles and calibrated to detect deviations. It communicated with the PLC via Ethernet/IP, sending signals to stop the conveyor if a hand was detected or to reject under/overfilled bottles.

5. Testing and Commissioning

After installation, I conducted thorough testing:

Result

The automated system delivered significant improvements:

The project was a success, allowing my friend's business to meet growing demand while maintaining quality and safety. The combination of PLC programming and vision system integration proved to be a robust solution for automating the honey bottling process.

Conclusion

This project showcased the power of automation in small-scale industries. By leveraging PLC programming, vision systems, and careful system design, I was able to transform a manual process into an efficient, safe, and scalable operation. If you're considering automation for your business, feel free to reach out for insights or guidance!