Inst ToolsInst ToolsInst Tools
  • Courses
  • Automation
    • PLC
    • Control System
    • Safety System
    • Communication
    • Fire & Gas System
  • Instrumentation
    • Design
    • Pressure
    • Temperature
    • Flow
    • Level
    • Vibration
    • Analyzer
    • Control Valve
    • Switch
    • Calibration
    • Erection & Commissioning
  • Interview
    • Instrumentation
    • Electrical
    • Electronics
    • Practical
  • Q&A
    • Instrumentation
    • Control System
    • Electrical
    • Electronics
    • Analog Electronics
    • Digital Electronics
    • Power Electronics
    • Microprocessor
  • Request
Search
  • Books
  • Software
  • Projects
  • Process
  • Tools
  • Basics
  • Formula
  • Power Plant
  • Root Cause Analysis
  • Electrical Basics
  • Animation
  • Standards
  • 4-20 mA Course
  • Siemens PLC Course
Reading: PLC Project: Detect Overweight and Less Weight Bottles
Share
Font ResizerAa
Inst ToolsInst Tools
Font ResizerAa
  • Courses
  • Design
  • PLC
  • Interview
  • Control System
Search
  • Courses
  • Automation
    • PLC
    • Control System
    • Safety System
    • Communication
    • Fire & Gas System
  • Instrumentation
    • Design
    • Pressure
    • Temperature
    • Flow
    • Level
    • Vibration
    • Analyzer
    • Control Valve
    • Switch
    • Calibration
    • Erection & Commissioning
  • Interview
    • Instrumentation
    • Electrical
    • Electronics
    • Practical
  • Q&A
    • Instrumentation
    • Control System
    • Electrical
    • Electronics
    • Analog Electronics
    • Digital Electronics
    • Power Electronics
    • Microprocessor
  • Request
Follow US
All rights reserved. Reproduction in whole or in part without written permission is prohibited.
Inst Tools > Blog > PLC Tutorials > PLC Project: Detect Overweight and Less Weight Bottles

PLC Project: Detect Overweight and Less Weight Bottles

Automate bottle quality control with this PLC project. Detect and separate overweight and less weight bottles using monitoring and sorting.

Last updated: July 7, 2025 4:53 pm
Editorial Staff
PLC Tutorials
No Comments
Share
7 Min Read
SHARE

This article will discuss the Bottle Filling System with Capacity Error Detection using Omron PLC program and CX-Programmer software. The system is designed to automate the bottle filling process in production with an added feature of capacity error detection. The system utilizes a weighing function to ensure that each bottle is filled to the specified capacity. Bottles with excessive or insufficient content will be separated. The system will also count the bottles filled with the correct weight.

Contents
Program ObjectiveDetect Overweight and Less Weight BottlesInputs and Outputs MappingPLC Project

Program Objective

PLC Project Detect Overweight and Less Weight Bottles

Initialization:

  • The main conveyor starts moving, and the system waits for a bottle to be detected under the filling valve.

Filling Process:

  • When the proximity sensor detects a bottle under the valve, the system opens the filling valve for 5 seconds.
  • After 5 seconds, the valve automatically closes.
  • A weighing process will be conducted to ensure the bottle is filled to the specified capacity.

Error Detection:

  • If the bottle does not reach the minimum capacity (45 ml), the system classifies it as an Underweight bottle. The bottle will be separated from the main conveyor line.
  • If the bottle exceeds the maximum capacity (50 ml), the system classifies it as an Overweight bottle. The bottle will be separated from the main conveyor line.

Separation of Bottles with Non-Conforming Weights:

  • The bottles with incorrect weight will be directed to another conveyor line using an actuator.
  • Bottles with the correct weight will remain on the main conveyor line and proceed to the next process.
  • The system will only count bottles with the correct weight.

Indicator Lamp:

  • The system has two indicator lamps that will turn On if bottles with Underweight or Overweight are detected.

Detect Overweight and Less Weight Bottles

CX-Programmer Based Bottle Filling and Inspection

Inputs and Outputs Mapping

S.No.CommentInput (I)Output(Q)Memory BitMemory WordTimer
1PB_START0.00    
2PB_STOP0.01    
3SENS_BOTTLE0.02    
4SENS_OUT_OVER0.03    
5SENS_OUT_LESS0.04    
6SENS_OUT_GOOD0.05    
7RESET_COUNTER0.06    
8CONVEYOR_1 100.00   
9VALVE_FILLING 100.01   
10ACTUATOR_1 100.02   
11ACTUATOR_2 100.03   
12LAMP_BOTTLE_OVERWEIGHT 100.04   
13LAMP_BOTTLE_LESSWEIGHT 100.05   
14CONVEYOR_2 100.06   
15CONVEYOR_3 100.07   
16PV_LIQUID   D0 
17COUNTER_GOOD_BOTTLE   D10 
18SYSTEM_ON  W0.00  
19TIMER_DELAY    T0000

PLC Project

PLC project for bottle weight detect

RUNG 0 (SYSTEM START)

In this Rung, the memory bit SYSTEM_ON (W0.00) will be in the HIGH state when the PB_START (0.00) button is Pressed. Because it uses the KEEP (011) instruction, the memory bit SYSTEM_ON (W0.00) will remain in the HIGH state even though the PB_START (0.00) button has been Released.

If the PB_STOP (0.01) button is Pressed, the memory bit SYSTEM_ON (W0.00) will be in the LOW state.

RUNG 1 (CONVEYOR 1 ON)

In this Rung, when the NO contact of the memory bit SYSTEM_ON (W0.00) is in the HIGH state, the output CONVEYOR_1 (100.00) will be ON. The CONVEYOR_1 (100.00) output will be OFF if the NC contact of VALVE_FILLING (100.01) is in the HIGH state.

RUNG 2 (BOTTLE FILLING)

In this Rung, if the NO contact of the memory bit SYSTEM_ON (W0.00) and the SENS_BOTTLE (0.02) Sensor are in the HIGH state, then the VALVE_FILLING (100.01) output will be OPEN and the TIMER_DELAY (T0000) Timer will Start counting up to 5 seconds.

After Timer TIMER1 (T0000) has finished counting, the output VALVE_FILLING (100.01) will be closed.

Detect overweight bottles using PLC

RUNG 3 (BOTTLE OVER WEIGHT)

In this Rung, the output ACTUATOR_1 (100.02) will be ON when the NO contact of the memory bit SYSTEM_ON (W0.00) in the HIGH state and the memory word PV_LIQUID (D0) is Greater Than “50”.

The ACTUATOR_1 (100.02) output will be OFF if the NO contact of Sensor SENS_OUT_OVER (0.03) is in the HIGH state.

The CONVEYOR_2 (100.06) output will be ON when the NO contact of ACTUATOR_1 (100.02) is in the HIGH state.

Omron PLC bottle filling automation

RUNG 4 (BOTTLE LESS WEIGHT)

In this Rung, the output ACTUATOR_2 (100.03) will be ON when the NO contact of the memory bit SYSTEM_ON (W0.00) in the HIGH state and the memory word PV_LIQUID (D0) is Less Than “45”.

The ACTUATOR_2 (100.03) output will be OFF if the NO contact of Sensor SENS_OUT_LESS(0.04) is in the HIGH state.

The CONVEYOR_3 (100.07) output will be ON when the NO contact of ACTUATOR_2 (100.03) is in the HIGH state.

RUNG 5 (LAMP ALARM)

The LAMP_BOTTLE_OVERWEIGHT (100.04) output will be ON when the NO contact of the memory bit SYSTEM_ON (W0.00) and the ACTUATOR_1 (100.02) output are in the HIGH state.

The LAMP_BOTTLE_LESSWEIGHT (100.05) output will be ON when the NO contact of the memory bit SYSTEM_ON (W0.00) and the ACTUATOR_2 (100.03) output are in the HIGH state.

PLC application in bottle quality check

RUNG 6 (COUNTER AND RESET)

In this Rung, the value in the memory word COUNTER_GOOD_BOTTLE (D1) will increase (+1) if the NO contact of the memory bit SYSTEM_ON (W0.00) and Sensor SENS_OUT_GOOD (0.05) are in the HIGH state.

The value in the memory word COUNTER_GOOD_BOTTLE (D1) will be reset to zero “0” when the NO contact of the memory bit SYSTEM_ON (W0.00) in the HIGH state and the RESET_COUNTER (0.06) button is Pressed.

PLC Project Download

Read Next:

  • Empty Bottle detection using PLC Logic
  • PLC Programming on Bottle Line Control
  • Fish Farm PLC Automation Programming
  • PLC Program for Automatic Bottle Rejection
  • Electro-Pneumatic Circuit Using Pressure Sensor
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 !

Continue Reading

Various Causes for PLC Going in Stop Mode
Do’s and Don’ts in PLC
PLC Program for Food Processing Industry
Why is RTO used in the Place of TON Timer?
How to Insert Block Calls in SCL Language?
PLC Timer Example: Sequential Control of Three Lights with Reset
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
210kSubscribersSubscribe
38kFollowersFollow

Categories

Explore More

Which Language is Best for PLC Programming?
How to Configure PID Controller in Various Schneider PLCs?
PLC Program for Automatic Liquid Mixing Application
How to Choose a Suitable HMI for Your Application?
What is Seal-in Circuit ?
ControlLogix Architecture – Rockwell Automation
Preventive Maintenance of Variable Frequency Drive (VFD)
Free Mitsubishi PLC Online Training Course and Tutorials

Keep Learning

Structured Text PID control loop in PLC

How to Program PID Control in PLC with Structured Text?

PLC offline data of a project are compared

Compare Two Offline PLC Projects

FIFO in STL Language in Siemens PLC

How to Code a FIFO Queue in STL Language in Siemens PLC?

Learn PLC Programming

Basics of Ladder Diagram in PLC Programming

Human Machine Interface

What is Human Machine Interface (HMI) ?

PLC to Start or Stop 3 Machines using 1 Switch Program

PLC to Start or Stop 3 Machines using 1 Switch Program

Siemens PLC Force LED

Forcing and Modifying PLC Logic

PLC Ladder Logic Simulator Mobile Apps For Android

PLC Ladder Logic Simulator Mobile Apps For Android

Learn More

Open Diode in a Full-Wave Rectifier

Power Supply Circuit Fault Analysis

Solenoid-Valve-Working-Animation

Solenoid Valve Working Animation

PLC Program for Conditional Control Logic

PLC Program for Conditional Control Logic

Address Resolution Protocol (ARP)

What is the Address Resolution Protocol? – Types of ARP

Reactor Top lid lapped

Urea Reactor Top Bolted Plug developed Leaks

Leaky Boiler Drum Level Switch

Leaky Boiler Drum Level Switch Stops NH3 Plant Commissioning

Power Systems Questions & Answers

Power Systems MCQ Series 10

PLC Program Backup in Siemens Tia Portal

How to Take Program Backup from Physical PLC? – Siemens PLC

Menu

  • About
  • Privacy Policy
  • Copyright

Quick Links

  • Learn PLC
  • Helping Hand
  • Part Time Job

YouTube Subscribe

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?